login
Recamán transform of the running sum of the decimal digits of Pi (A046974).
1

%I #12 May 21 2026 22:34:27

%S 0,3,7,15,6,20,43,18,49,13,52,8,60,121,53,130,50,132,47,140,237,134,

%T 29,140,25,143,22,151,19,153,12,162,317,472,315,150,323,146,324,137,

%U 331,136,337,127,340,118,349,115,356,110,357,604,352,92,354,616,345,67

%N Recamán transform of the running sum of the decimal digits of Pi (A046974).

%C The 20 smallest numbers not occurring in the first million terms: 5, 9, 11, 21, 28, 31, 40, 41, 59, 61, 62, 64, 65, 68, 74, 76, 78, 79, 80, 81.

%H Ruud H.G. van Tol, <a href="/A396107/b396107.txt">Table of n, a(n) for n = 0..10000</a>

%o (PARI) first(nn)= localprec(nn+20); my(d=digits(Pi*10^nn\1), r=List(0), k=0, s=0, t=0); for(n=1, nn-1, k+=d[n]; s=bitor(s,1<<(t+=if(t<=k||bittest(s, t-k), k, -k))); listput(~r, t)); Vec(r);

%Y Cf. A005132, A046974, A064365.

%K nonn,base,easy,look

%O 0,2

%A _Ruud H.G. van Tol_, May 17 2026