-2

Find the last four digits of $2^{ 27653} - 1. This is one of the questions in a mathematics contest. I have tried to find the sequence but I found it impossible. (I have used excel to do this and the sequence repeat after 2 ^ 15XX - 1)

Y.T.
  • 1,427
  • 9
  • 20
  • You should find the remainder modulo $5^4$. The remainder modulo $2^4$ should be easier :-). Use for example the techniques explained here for the first task. Then apply the Chinese Remainder Theorem. See other threads linked to that mother thread for VERY similar questions. – Jyrki Lahtonen Aug 08 '18 at 17:17

1 Answers1

0

Using sage we get instantly

sage: R = Zmod(10000)
sage: R(2)^27653 - 1
2991

Using pari/gp also ...

? Mod(2,10000)^27653 - 1
%11 = Mod(2991, 10000)

The human solution would be to compute the result modulo $2^4$ and modulo $5^4$. Of course, the number $$N=2^{27653}$$ is congruent to $0$ modulo $2^4$. Let us compute it modulo $5^4$. The Euler indicator of this number is $\phi(5^4)=5^4\left(1-\frac 15\right)=4\cdot 5^3=500$. So $$N=2^{27653}\equiv 2^{27653\mod 500}=2^{153}\mod 5^4\ .$$ Now we can compute $2^{153}$ explicitly, it is $11417981541647679048466287755595961091061972992$, or write it like $(2^{51})^3$ and compute the third power of $(2^{51}\mod 5^4)=(2251799813685248\mod 5^4)=(5248\mod 5^4)=(248\mod 5^4)$. In each case we get the wanted $492$. Now we search among the numbers $492+5^4k$ with $0\le k< 2^4$ the one which fulfills the condition modulo $2^4$. The number divisible by $16$ among them is $2992$. We get the same answer as a human ...

TonyK
  • 64,559
dan_fulea
  • 32,856
  • Sorry, the answer was quickly typed, but the connection did not work, not it is submitted. Shall i remove it?! – dan_fulea Aug 08 '18 at 18:41