OFFSET
1,2
EXAMPLE
Pi^1 = 3.14159..., whose digits after the decimal point begin with 1, so a(1)=1.
Pi^2 = 9.869..., whose digits after the decimal point begin with 8, so a(8)=2.
a(14)=1 because Pi^1 = 3.14....
PROG
(PARI) a(n) = my(k=1); while (floor(frac(Pi^k)*10^(1+logint(n, 10))) != n, k++); k; \\ Michel Marcus, Jun 18 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Mark Hudson (mrmarkhudson(AT)hotmail.com), Nov 16 2004
STATUS
approved