login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A363093
Leading digit of 7^n.
3
1, 7, 4, 3, 2, 1, 1, 8, 5, 4, 2, 1, 1, 9, 6, 4, 3, 2, 1, 1, 7, 5, 3, 2, 1, 1, 9, 6, 4, 3, 2, 1, 1, 7, 5, 3, 2, 1, 1, 9, 6, 4, 3, 2, 1, 1, 7, 5, 3, 2, 1, 1, 8, 6, 4, 3, 2, 1, 1, 7, 5, 3, 2, 1, 1, 8, 5, 4, 2, 2, 1, 1, 7, 4, 3, 2, 1, 1, 8, 5, 4, 2, 1, 1, 9, 6, 4, 3, 2, 1, 1, 8, 5, 3, 2, 1, 1, 9, 6, 4, 3
OFFSET
0,2
FORMULA
a(n) = A000030(A000420(n)).
MATHEMATICA
a[n_] := IntegerDigits[7^n][[1]]; Array[a, 100, 0] (* Amiram Eldar, Jul 15 2023 *)
PROG
(PARI) a(n) = digits(7^n)[1];
KEYWORD
nonn,base,easy
AUTHOR
Seiichi Manyama, Jul 15 2023
STATUS
approved