OFFSET
0,5
COMMENTS
Terms are squares; square roots give A001053.
REFERENCES
M. E. Larsen, Summa Summarum, A. K. Peters, Wellesley, MA, 2007; see p. 35.
LINKS
S. B. Ekhad, Problem 10356, Amer. Math. Monthly, 101 (1994), 75.
MAPLE
a:=proc(n) option remember; local m;
if n=0 then RETURN(0); fi;
if n=1 then RETURN(1); fi;
if n=2 then RETURN(0); fi;
if n=3 then RETURN(1); fi;
m:=n-3;
RETURN((m^2+m+1)*(m+1)*a(n-1)/m+(m^2+m+1)*a(n-2)-(m+1)*a(n-3)/m);
end;
PROG
(PARI) a=vector(10^3); for(n=1, 3, a[n]=n%2); for(n=4, #a, a[n] = (n^2-5*n+7)*(n-2)*a[n-1]/(n-3) + (n^2-5*n+7)*a[n-2] - (n-2)*a[n-3]/(n-3)); concat(0, a) \\ Altug Alkan, Apr 04 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 30 2009
EXTENSIONS
Typo in name corrected by Rogério Serôdio, Apr 04 2018
STATUS
approved