|
| |
|
|
A072968
|
|
Least k>0 such that the last digit of (n+k)^(n+k) is the same as the last digit of n^n.
|
|
0
| |
|
|
10, 16, 14, 2, 10, 2, 6, 4, 10, 10, 10, 2, 14, 2, 10, 8, 6, 4, 10, 10, 10, 16, 14, 2, 10, 2, 6, 4, 10, 10, 10, 2, 14, 2, 10, 8, 6, 4, 10, 10, 10, 16, 14, 2, 10, 2, 6, 4, 10, 10, 10, 2, 14, 2, 10, 8, 6, 4, 10, 10, 10, 16, 14, 2, 10, 2, 6, 4, 10, 10, 10, 2, 14, 2, 10, 8, 6, 4, 10, 10, 10
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
FORMULA
| a(n) is periodic with period (10, 16, 14, 2, 10, 2, 6, 4, 10, 10, 10, 2, 14, 2, 10, 8, 6, 4, 10, 10, 10) of length 20
|
|
|
PROG
| (PARI) a(n)=if(n<0, 0, s=1; while(abs((n+s)^(n+s)%10-n^n%10)>0, s++); s)
|
|
|
CROSSREFS
| Sequence in context: A134515 A175335 A167788 * A072138 A109891 A104869
Adjacent sequences: A072965 A072966 A072967 * A072969 A072970 A072971
|
|
|
KEYWORD
| base,easy,nonn
|
|
|
AUTHOR
| Benoit Cloitre (benoit7848c(AT)orange.fr), Aug 13 2002
|
| |
|
|