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.

Showing 1-3 of 3 results.

A349610 Number of solutions to x^2 + y^2 + z^2 <= n^2, where x, y, z are positive odd integers.

Original entry on oeis.org

0, 0, 1, 1, 4, 7, 17, 20, 35, 45, 69, 84, 114, 136, 184, 217, 272, 314, 389, 443, 528, 597, 702, 784, 901, 1018, 1166, 1268, 1442, 1589, 1791, 1926, 2157, 2332, 2584, 2800, 3058, 3293, 3596, 3872, 4194, 4485, 4878, 5184, 5590, 5950, 6388, 6761, 7232
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 23 2021

Keywords

Examples

			a(4) = 4 since there are solutions (1,1,1), (3,1,1), (1,3,1), (1,1,3).
		

Crossrefs

Programs

  • Mathematica
    Table[SeriesCoefficient[EllipticTheta[2, 0, x^4]^3/(8 (1 - x)), {x, 0, n^2}], {n, 0, 48}]

Formula

a(n) = [x^(n^2)] theta_2(x^4)^3 / (8 * (1 - x)).
a(n) = Sum_{k=0..n^2} A008437(k).
a(n) = A053596(n) / 8.

A349611 Number of solutions to x^2 + y^2 + z^2 + w^2 <= n^2, where x, y, z, w are positive odd integers.

Original entry on oeis.org

0, 0, 1, 1, 5, 11, 32, 44, 82, 120, 207, 277, 405, 541, 768, 966, 1272, 1592, 2087, 2489, 3103, 3719, 4588, 5348, 6386, 7522, 8891, 10175, 11909, 13623, 15818, 17742, 20278, 22720, 25923, 28917, 32361, 36031, 40368, 44488, 49400, 54358, 60377, 65835, 72341
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 23 2021

Keywords

Examples

			a(4) = 5 since there are solutions (1,1,1,1), (3,1,1,1), (1,3,1,1), (1,1,3,1), (1,1,1,3).
		

Crossrefs

Programs

  • Maple
    N:= 100: # for a(0) .. a(N)
    F:= add(x^(k^2),k = 1 ... N,2):
    F:= expand(F^4):
    L:= ListTools:-PartialSums([seq](coeff(F,x,n),n=0..N^2)):
    L[[seq(n^2+1,n=0..N)]]; # Robert Israel, Dec 21 2023
  • Mathematica
    Table[SeriesCoefficient[EllipticTheta[2, 0, x^4]^4/(16 (1 - x)), {x, 0, n^2}], {n, 0, 44}]

Formula

a(n) = [x^(n^2)] theta_2(x^4)^4 / (16 * (1 - x)).

A372511 Number of solutions to x^2 + y^2 <= n, where x, y are positive odd integers.

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17
Offset: 0

Views

Author

Ilya Gutkovskiy, May 04 2024

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 85; CoefficientList[Series[EllipticTheta[2, 0, x^4]^2/(4 (1 - x)), {x, 0, nmax}], x]
Showing 1-3 of 3 results.