

A229522


Final digit (in decimal system) of (n^n)^n, i.e., (n^n)^n mod 10.


1



1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 3, 6, 5, 6
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

Periodic sequence with period length 10.


LINKS

Table of n, a(n) for n=1..86.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 1).


MATHEMATICA

Table[PowerMod[n^n, n, 10], {n, 200}]


PROG

(PARI) a(n)=n%=10; lift(Mod(n, 10)^n^n) \\ Charles R Greathouse IV, Dec 27 2013


CROSSREFS

Cf. A002489, A120962.
Sequence in context: A043296 A199186 A176715 * A227400 A137245 A060294
Adjacent sequences: A229519 A229520 A229521 * A229523 A229524 A229525


KEYWORD

nonn,base,easy


AUTHOR

José María Grau Ribas, Sep 25 2013


STATUS

approved



