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

A374088
Number of ordered pairs (x,y) of positive integers such that x^2 + x*y + y^2 = n.
2
0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1, 2, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 1, 2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 1, 2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 4, 0, 2
OFFSET
0,8
LINKS
PROG
(Python)
from sympy.abc import x, y
from sympy.solvers.diophantine.diophantine import diop_quadratic
def A374088(n): return sum(1 for d in diop_quadratic(x*(x+y)+y**2-n) if d[0]>0 and d[1]>0) # Chai Wah Wu, Jun 28 2024
CROSSREFS
Sequence in context: A227009 A144629 A271719 * A339088 A025907 A024157
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 28 2024
STATUS
approved