Processing math: 100%

Tuesday, October 21, 2014

Solution to Last 1000 digits puzzle

[This is a solution to the last 1000 digits puzzle earlier.]

A brief description of the problem:

What are the last 1000 digits of 1+50+502++50999
when written in base-10? A reasonably easy to compute (by a human) description is enough.

Solution

The solution relies on the following fact:

If a is relatively prime to 49, then a421 is divisible by 49: by applying Euler's theorem, as φ(49)=42.

Now, the last 1000 digits of 1+50+502++50999
are the same as the last 1000 digits of S=1+50+502++501007=501008149=
(510081)101008+(1010081)49



Since 1008 is divisible by 42, 510081 is divisible by 49.

Thus

S=K101008+101008149


Thus the last 1000 digits of S are same as the last 1000 digits of 101008149
which are the same as the last 1000 digits of 10100849
.

Since 149 is a repeating decimal with period 42 , the last 1000 digits can easily be computed:  204081632653061224489795918367346938775510 repeated.

No comments:

Post a Comment