OFFSET
2,2
LINKS
R. H. Hardin, Table of n, a(n) for n=2..50
FORMULA
[cache enabling] count(n,s,ss)->count(n,t,tt) where t=s mod n, q=(t-s)/n, tt=ss+2*q*s+n*q^2; count(n,t,tt)=sum[i^2<=tt]{ count(n-1,t-i,tt-i^2) }. a(n)=count(n,0,18)/2.
G.f.: -x^2*(434*x^16 +19697*x^15 +99303*x^14 -116957*x^13 -153862*x^12 +406284*x^11 -362744*x^10 +160940*x^9 -16710*x^8 -25990*x^7 +20878*x^6 -9354*x^5 +3002*x^4 -728*x^3 +132*x^2 -16*x +1) / (x -1)^19. - Colin Barker, Apr 08 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Mar 02 2009
STATUS
approved