I think that the sum 1+2+4+8+16+32+...+n is equal to 2n-1. At least it has worked on all the cases I've tried with, but I can't manage to prove it using induction. I am a newbie when it comes to proofs by induction, so am I doing the induction part wrong or is the sum actually not equal to 2n-1? If it is, could someone post the proof?
My try on the induction: 1+2+4+8+...+n = 2n-1
1+2+4+8+...+n+(n+1) = 2n-1+(n+1)
1+2+4+8+...+n+(n+1) = 3n
But 3n is not 2(n+1)-1 = 2n+1
$2^n - 1$becomes $2^n - 1$, while$2^{n - 1}$becomes $2^{n - 1}$. I also think you want to stop the sum not at $n$, but at $2^{n - 1}$. – pjs36 Dec 01 '15 at 18:01