login
The sum of the next n digits of Pi.
0

%I #10 Feb 06 2022 17:45:54

%S 3,5,15,16,38,26,29,41,49,40,56,50,72,55,62,75,72,56,86,100,101,95,99,

%T 96,113,110,102,113,135,132,147,142,154,170,135,171,172,160,210,172,

%U 136,203,217,197,212,215,217,228,192,264,229,204,238,282,250,299

%N The sum of the next n digits of Pi.

%e Group the digits of Pi as follows: (3), (1,4), (1,5,9), (2,6,5,3), (5,8,9,7,9), etc., and take the sum of each group. Thus, the first five terms of the sequence are: 3, 1+4=5, 1+5+9=15, 2+6+5+3=16, and 5+8+9+7+9=38.

%t Module[{nn=100,pid},pid=RealDigits[Pi,10,(nn(nn+1))/2][[1]];Total/@ TakeList[ pid,Range[nn]]]

%Y Cf. A000796.

%K nonn,base

%O 1,1

%A _Harvey P. Dale_, Feb 06 2022