login
Sum of the first n digits of sqrt(2), including the initial "1".
2

%I #3 May 30 2012 15:45:28

%S 1,5,6,10,12,13,16,21,27,29,32,39,42,42,51,56,56,60,68,76,76,77,83,91,

%T 99,106,108,112,114,114,123,129,138,146,146,153,161,166,172,181,187,

%U 194,195,203,210,215,218,225,231,240,244,252,252,259,262,263,270,276,282

%N Sum of the first n digits of sqrt(2), including the initial "1".

%H Harvey P. Dale, <a href="/A099538/b099538.txt">Table of n, a(n) for n = 1..1000</a>

%e sqrt(2)=1.41421356237... so the sums are 1, 1+4, 1+4+1, 1+4+1+4, 1+4+1+4+2,...

%e which gives 1, 5, 6, 10, 12,...

%t Accumulate[RealDigits[Sqrt[2],10,60][[1]]] (* _Harvey P. Dale_, May 30 2012 *)

%Y Cf. A002193 for digits of sqrt(2). Other sequences like this one for other constants: A099534-A099537, A039918, A046974, A046975.

%K base,easy,nonn

%O 1,2

%A Mark Hudson (mrmarkhudson(AT)hotmail.com), Oct 22 2004