login
A111395
First digit of powers of 5.
9
1, 5, 2, 1, 6, 3, 1, 7, 3, 1, 9, 4, 2, 1, 6, 3, 1, 7, 3, 1, 9, 4, 2, 1, 5, 2, 1, 7, 3, 1, 9, 4, 2, 1, 5, 2, 1, 7, 3, 1, 9, 4, 2, 1, 5, 2, 1, 7, 3, 1, 8, 4, 2, 1, 5, 2, 1, 6, 3, 1, 8, 4, 2, 1, 5, 2, 1, 6, 3, 1, 8, 4, 2, 1, 5, 2, 1, 6, 3, 1, 8, 4, 2, 1, 5, 2, 1, 6
OFFSET
0,2
LINKS
FORMULA
a(n) = A000030(A000351(n)). - Seiichi Manyama, Jul 15 2023
MATHEMATICA
First[IntegerDigits[#]]&/@(5^Range[0, 100]) (* Harvey P. Dale, Jan 13 2015 *)
PROG
(PARI) a(n) = digits(5^n)[1]; \\ Michel Marcus, Jan 07 2014
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Almerio A. Castro (almerio.castro(AT)gmail.com), Nov 11 2005
EXTENSIONS
a(0)=1 prepended, and more terms from Michel Marcus, Jan 07 2014
STATUS
approved