OFFSET
0,1
FORMULA
a(n) = ((A^2+3*A-2*n)*(-A^2+A+2*(n+4))-(B^2+3*B-2*(n-1))*(-B^2+B+2*(n+3)))/4, where A = floor((sqrt(8*n+9)-1)/2) and B = floor((sqrt(8*(n-1)+9)-1)/2) = floor((sqrt(8*n+1)-1)/2). - Luce ETIENNE, May 31 2017
CROSSREFS
KEYWORD
sign
AUTHOR
Paul Curtz, Aug 23 2008
STATUS
approved