login
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: A380959 A144629 A271719 * A339088 A025907 A024157
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 28 2024
STATUS
approved