The maximum number of nodes in a binary tree of depth $k$ is $2^{k}-1$, $k \geq1$. I am confused with this statement
The maximum number of nodes in a binary tree of depth $k$ is $2^k-1$, $k \geq1$.
How come this is true. Lets say I have the following tree
    1
   / \
  2   3

Here the depth of the tree is 1. So according to the formula, it will be $2^1-1 = 1$. But we have $3$ nodes here. I am really confused with this depth thing. 
Any clarifications?

According to your formula. the depth is not equal to 1 here. depth starts from 1 to onwards. and level of the tree starts from 0.
So here depth is 2.
you take 2^2 - 1 = 3 nodes. here k = 2.
In some books you will find depth starting from 1 and level of the tree starting from 0 and in other books you find it the other way round. But from where you have taken this formula here depth starts from 1 (i.e. minimum depth can be 1)
