OFFSET
1,2
COMMENTS
Let d(n) be the n-th digit of Pi=3.14159... so d(1)=1, d(2)=4 etc. d(123)=3 and 3 is the last digit of 123 hence 123 is in the sequence.
MATHEMATICA
With[{pids=Rest[RealDigits[Pi, 10, 610][[1]]]}, Transpose[Select[Table[ {n, First[Take[pids, {n, n}]]}, {n, 600}], Mod[First[#], 10]==Last[#]&]][[1]]] (* Harvey P. Dale, Sep 15 2011 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Benoit Cloitre, Mar 07 2002
STATUS
approved
