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”).

A374092
Number of solutions to n = x^2 + x*y + y^2 with 0 < x < y.
3
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1
OFFSET
0,92
COMMENTS
a(n) = 0 if n == 2 (mod 4). - Robert Israel, Jun 28 2024
MAPLE
N:= 200: # for a(0) .. a(N)
V:= Array(0..N):
for x from 1 to floor(sqrt(N/3)) do
for y from x+1 do
v:= x^2 + x*y + y^2;
if v > N then break fi;
V[v]:= V[v]+1;
od od:
convert(V, list); # Robert Israel, Jun 28 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 28 2024
STATUS
approved