[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
Solution
The solution relies on the following fact:
If a is relatively prime to 49, then a42−1 is divisible by 49: by applying Euler's theorem, as φ(49)=42.
Now, the last 1000 digits of 1+50+502+⋯+50999
Since 1008 is divisible by 42, 51008−1 is divisible by 49.
Thus
S=K∗101008+101008−149
Thus the last 1000 digits of S are same as the last 1000 digits of 101008−149
Since 149 is a repeating decimal with period 42 , the last 1000 digits can easily be computed: 204081632653061224489795918367346938775510 repeated.
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 a42−1 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=501008−149=
(51008−1)101008+(101008−1)49
Since 1008 is divisible by 42, 51008−1 is divisible by 49.
Thus
S=K∗101008+101008−149
Thus the last 1000 digits of S are same as the last 1000 digits of 101008−149
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