I was just watching ’ Expecting - Get a Head ’ lecture.
In that in the instructor made a recursive function :
x = (1)(1/2) + (1+x)(1/2)
x = no. of throws
Why we have taken ’ x+1 ’ instead of ’ x-1 ’ because according to me, if the outcome of the toss, came tails, then we have left only ’ x-1 ’ throws.