OFFSET
0,3
COMMENTS
The sequence equals 2 in the range n = 3628..3730. - Rémy Sigrist, Dec 13 2018
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
FORMULA
Using the formula in A000030: a(n) = [n^n / 10^([log_10(n^n)])] = [n^n / 10^([n*log_10(n)])].
EXAMPLE
a(7) = 8, as 7^7 = 823543.
MATHEMATICA
a = {}; Do[ a = Append[ a, IntegerDigits[ n^n ] [ [ 1 ] ] ], {n, 1, 75 } ]; a
PROG
(PARI) a(n) = digits(n^n)[1] \\ Rémy Sigrist, Dec 13 2018
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, May 06 2001
EXTENSIONS
More terms from Robert G. Wilson v, May 10 2001
Further terms from Asher Auel, May 20 2001
a(0) = 1 prepended by Rémy Sigrist, Dec 13 2018
STATUS
approved