login
a(n+1)=a(n)-n^2 if positive and new, else a(n+1)=a(n)+n^2; a(0)=1.
2

%I #12 Feb 06 2017 11:15:18

%S 1,1,2,6,15,31,56,20,69,5,86,186,65,209,40,236,11,267,556,232,593,193,

%T 634,150,679,103,728,52,781,1565,724,1624,663,1687,598,1754,529,1825,

%U 456,1900,379,1979,298,2062,213,2149,124,2240,4449,2145,4546,2046,4647

%N a(n+1)=a(n)-n^2 if positive and new, else a(n+1)=a(n)+n^2; a(0)=1.

%H Indranil Ghosh, <a href="/A141126/b141126.txt">Table of n, a(n) for n = 0..50000</a> (terms 0..240 from R. Zumkeller)

%H <a href="/index/Rea#Recaman">Index entries for sequences related to Recamán's sequence</a>.

%Y Cf. A063733.

%K nonn

%O 0,3

%A _Reinhard Zumkeller_, Jun 05 2008