0

I know that $2^n-1$ gives you the decimal equivalent for any word consisting of $n$ $1$'s, but how can I demonstrate that in general terms for any word of $n$ $1$'s?

EMPV
  • 21
  • 2

2 Answers2

1

Sum the implicit geometric series:

$$\underbrace{111\ldots111}_n=\sum_{k=0}^{n-1}2^k=\;?$$

Brian M. Scott
  • 616,228
1

Hint: what is the result if you add $1$ to any such word? What does that tell you?

Ben Grossmann
  • 225,327