login
Largest square less than or equal to sum of previous terms.
2

%I #5 Dec 24 2013 10:16:23

%S 1,1,1,1,4,4,9,16,36,64,121,256,484,961,1936,3844,7569,15129,30276,

%T 60516,121104,242064,483025,966289,1932100,3865156,7728400,15452761,

%U 30902481,61811044,123609924,247212729,494439696,988850916,1977669841

%N Largest square less than or equal to sum of previous terms.

%H Reinhard Zumkeller, <a href="/A061886/b061886.txt">Table of n, a(n) for n = 0..1000</a>

%F For n > 0: a(n) = A060984(n+1)-A060984(n) = A048760(A060984(n)).

%e a(6) = 9 since 1+1+1+1+4+4 = 12 and 9 is the largest square less than or equal to this.

%o (Haskell)

%o a061886 n = a061886_list !! n

%o a061886_list = 1 : zipWith (-) (tail a060984_list) a060984_list

%o -- _Reinhard Zumkeller_, Dec 24 2013

%Y Cf. A061883.

%K nonn

%O 0,5

%A _Henry Bottomley_, May 12 2001

%E Formula corrected by _Reinhard Zumkeller_, Dec 24 2013