Take each group of n flips. There is a 1/(2^n) probability that it is all heads. Therefore, the n heads should start on the (2^n)th flip. The last head will be the ((2^n)+n1)th flip. Therefore, the answer is (2^n)+n1.

Posted by Math Man
on 20110424 22:27:29 