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
HINT: The mistake in your induction proof is that the next element is not $n + 1$, but rather $2 \cdot n$.