OFFSET
1,1
COMMENTS
In decimal expansion of Pi (A000796)3,1,4,1,5,9,2,6,5,3,5,8,9,7,9,3,2,3,8,4,6,2,6,4,3,3,8,3,
2,7,9,5,0,2,8,8,4,
"1" is at 2nd position, hence a(1)=2,
"2" is at 7th and 17th positions, hence a(2)=17,
"3" is at 1st, 9th and 16th positions, hence a(3)=16.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
MATHEMATICA
rd=RealDigits[N[Pi, 2*10^7]][[1]]; Table[idn=IntegerDigits[n]; Position[Partition[rd, Length[idn], 1], idn][[n, 1]], {n, 1000}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Oct 05 2011
STATUS
approved