OFFSET
1,2
COMMENTS
The sequence is periodic with period length 16.
LINKS
Jose María Grau and A. M. Oller-Marcen, On the last digit and the last non-zero digit of n^n in base b, arXiv:1203.4066 [math.NT], 2012.
Jose María Grau and A. M. Oller-Marcen, On the last digit and the last non-zero digit of n^n in base b, Bull. Korean Math. Soc. 51 (2014), No. 5, pp. 1325-1337.
MATHEMATICA
f[n_, b_] := Module[{m = n^n}, While[Mod[m, b] == 0, m = m/b]; Mod[m, b]]; y = Table[f[i, 16], {i, 1, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
José María Grau Ribas, Feb 23 2014
STATUS
approved