MathDB
Problems
Contests
International Contests
Baltic Way
2006 Baltic Way
18
18
Part of
2006 Baltic Way
Problems
(1)
A sequence of the last digit of n^(n^n) is periodic
Source: Baltic Way 2006
12/4/2010
For a positive integer
n
n
n
let
a
n
a_n
a
n
ā
denote the last digit of
n
(
n
n
)
n^{(n^n)}
n
(
n
n
)
. Prove that the sequence
(
a
n
)
(a_n)
(
a
n
ā
)
is periodic and determine the length of the minimal period.
modular arithmetic
number theory proposed
number theory