OFFSET
1,2
COMMENTS
a(n) = 0 if and only if n is in the Beatty sequence A001952.
PROG
(PARI) a(n)=sum(i=1, sqrtint((n^2+2*n+2)^2\8), my(k=sqrtint(2*i^2)); sqrtint(sqrtint( (n+1)^2\k^2\2)^2*2*k^2)==n) \\ Charles R Greathouse IV, Mar 05 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved