-1

When I count from left of the following number, how many digits are there before the hundredth $9$: $$97977977797777977777\cdots$$

Before the 3rd $9$ there are $2$ sevens and before the 5th nine there are $4$ sevens... So basically there are $99$ sevens before the hundredth nine + $99$ nines + the other sevens...

So how do I calculate the total number of the other sevens here? Am I right till what I have done?

1 Answers1

1

If you include the $n$th $9$, the answer would be

$$1+2+\cdots+n={n(n+1)\over 2}$$

By not including it, the answer is

$${n(n+1)\over2}-1={n^2+n-2\over2}={(n-1)(n+2)\over2}$$

Barry Cipra
  • 79,832