login
A095709
Triangle of numbers obtained by reversing the first n digits of Pi and juxtaposing.
0
3, 1, 3, 4, 1, 3, 1, 4, 1, 3, 5, 1, 4, 1, 3, 9, 5, 1, 4, 1, 3, 2, 9, 5, 1, 4, 1, 3, 6, 2, 9, 5, 1, 4, 1, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3, 5, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3, 8, 5, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3, 9, 8, 5, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3, 7, 9, 8, 5, 3, 5, 6, 2, 9, 5, 1, 4, 1, 3
OFFSET
1,1
EXAMPLE
3; 1,3; 4,1,3; 1,4,1,3; 5,1,4,1,3;... (reverse order of 3; 3.1; 3.14; 3.141; 3.1415; ...)
MATHEMATICA
Module[{nn=20, pid}, pid=RealDigits[Pi, 10, (nn(nn+1))/2][[1]]; Table[ Reverse[ Take[ pid, n]], {n, nn}]]//Flatten (* Harvey P. Dale, Aug 13 2019 *)
PROG
(PARI) a(n)=if(n<1, 0, default(realprecision, n+2); floor(Pi*10^(n-1))%10); b(n)=1+binomial(1+floor(1/2+sqrt(2*n)), 2)-n; for(n=1, 120, print1(a(b(n)), ", ")
CROSSREFS
Cf. A000796.
Sequence in context: A130560 A088105 A030708 * A076152 A107638 A245093
KEYWORD
base,easy,nonn,tabl
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Jul 07 2004
STATUS
approved