login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A216279
Number of solutions to the equation x^2+5y^2 = n with x and y > 0.
2
0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1
OFFSET
1,21
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n)=sum(k=1, sqrtint((n-1)\5), issquare(n-5*k^2)) \\ Charles R Greathouse IV, Jun 06 2016
(PARI) list(lim)=my(v=vector(lim\1), t); for(y=1, sqrtint((#v-1)\5), t=5*y^2; for(x=1, sqrtint(#v-t), v[x^2+t]++)); v \\ Charles R Greathouse IV, Jun 06 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 03 2012
STATUS
approved