login
A118943
n-th (starting from the left) decimal digit of 11^n.
6
1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 2, 7, 3, 0, 8, 8, 8, 9, 1, 4, 8, 3, 9, 6, 4, 4, 4, 5, 7, 0, 4, 9, 5, 2, 2, 3, 3, 3, 4, 7, 4, 4, 0, 1, 0, 7, 3, 9, 6, 6, 8, 5, 6, 4, 9, 2, 4, 6, 5, 5, 0, 3, 9, 2, 9, 7, 4, 9, 2, 4, 7, 5, 1, 1, 1, 8, 9, 4, 4, 9, 1, 3, 7, 7, 4
OFFSET
1,2
LINKS
FORMULA
a(n) = floor(11^n / 10^floor(1 + log(11^n)/log(10) - n)) mod 10. - Andrew Howroyd, Feb 11 2018
MATHEMATICA
Table[IntegerDigits[11^n][[n]], {n, 99}]
PROG
(PARI) a(n) = digits(11^n)[n]; \\ Andrew Howroyd, Feb 11 2018
(PARI) a(n) = my(v=11^n); v \ 10^(1+logint(v, 10)-n) % 10; \\ Andrew Howroyd, Feb 11 2018
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, May 06 2006
STATUS
approved