OFFSET
1,1
COMMENTS
Select digits from decimal expansion of Pi corresponding to triangular number indices. [From Harvey P. Dale, Oct 15 2011]
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n)=A000796(2-n(n+1)/2). - M. F. Hasler, Oct 20 2011
EXAMPLE
Triangle is
3
14
159
2653
58979
323846
2643383
27950288
419716939
9375105820
MATHEMATICA
pi = RealDigits[Pi, 10, 5565][[1]]; Table[ pi[[n(n + 1)/2]], {n, 1, 105}]
With[{nn=110}, RealDigits[Pi, 10, (nn(nn+1))/2][[1]][[Accumulate[ Range[ nn]]]]] (* Harvey P. Dale, Oct 15 2011 *)
Module[{nn=110}, Last[#]&/@TakeList[RealDigits[Pi, 10, (nn(nn+1))/2][[1]], Range[ nn]]] (* Harvey P. Dale, Oct 02 2022 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jul 24 2003
EXTENSIONS
Edited by Robert G. Wilson v, Jul 26 2003
STATUS
approved