OFFSET
1,5
LINKS
Robert Gerbicz, May 09 2008, Table of n, a(n) for n = 1..20
EXAMPLE
a(3)=1 because there is exactly one way to express 3^4 as the sum of 3 distinct nonzero squares: 81 = 1^2 + 4^2 + 8^2.
PROG
(PARI) a(i, n, k)=local(s, j); if(k==1, if(issquare(n) && n<i^2, return(1), return(0)), s=0; for(j=ceil(sqrt(n/k)), min(i-1, floor(sqrt(n-k+1))), s+=a(j, n-j^2, k-1)); return(s)) for(n=1, 50, m=n^4; k=n; print1(a(m+1, m, k)", ") ) \\ Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 16 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Sep 12 2007
EXTENSIONS
a(10) from Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 16 2007
a(11) onwards from Robert Gerbicz, May 09 2008
STATUS
approved