cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A374088 Number of ordered pairs (x,y) of positive integers such that x^2 + x*y + y^2 = n.

This page as a plain text file.
%I A374088 #13 Jun 28 2024 11:46:14
%S A374088 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,
%T A374088 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,
%U A374088 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
%N A374088 Number of ordered pairs (x,y) of positive integers such that x^2 + x*y + y^2 = n.
%H A374088 Seiichi Manyama, <a href="/A374088/b374088.txt">Table of n, a(n) for n = 0..10000</a>
%o A374088 (Python)
%o A374088 from sympy.abc import x, y
%o A374088 from sympy.solvers.diophantine.diophantine import diop_quadratic
%o A374088 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
%Y A374088 Cf. A063725, A374089.
%K A374088 nonn
%O A374088 0,8
%A A374088 _Seiichi Manyama_, Jun 28 2024