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.

A303400 Numbers that can be partitioned into squares of distinct integers >= 6, whose reciprocals sum to 1.

Original entry on oeis.org

2579, 3633, 3735, 3868, 3948, 4237, 4469, 4544, 4588, 4663, 4678, 4789, 4840, 4913, 4928, 4959, 4995, 5024, 5094, 5104, 5180, 5344, 5393, 5584, 5625, 5642, 5689, 5704, 5717, 5744, 5790, 5799, 5804, 5808, 5856, 5865, 5877, 5900, 5909, 5921, 5923, 5938, 5952, 5953, 5957, 5967, 5984, 6013, 6032, 6034, 6040, 6049, 6114, 6130, 6148, 6150, 6196, 6200, 6234, 6246, 6248, 6272, 6284, 6287
Offset: 1

Views

Author

Max Alekseyev, Apr 23 2018

Keywords

Comments

Also, 6-representable numbers (Alekseyev 2019).
All integers > 15707 = A297896(6) belong to this sequence.

Examples

			2579 = 6^2 + 7^2 + 8^2 + 9^2 + 10^2 + 12^2 + 14^2 + 15^2 + 18^2 + 24^2 + 28^2, where 1/6 + 1/7 + 1/8 + 1/9 + 1/10 + 1/12 + 1/14 + 1/15 + 1/18 + 1/24 + 1/28 = 1.
		

Crossrefs

Formula

For n >= 5484, a(n) = n + 10224.

A351532 Number of integer pairs (i, j), 0 < i, j < n, such that i/(n - i) + j/(n - j) = 1.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0, 2, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 2, 5, 0, 0, 1, 2, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0, 2, 1, 0, 0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 1, 2, 0, 5, 0, 0, 1, 0, 2, 1, 0, 2, 1, 0, 0, 3, 0, 0, 1, 0, 0, 7, 0, 0, 1, 0, 0, 1, 0, 0, 1, 2, 0, 1, 0, 2, 3
Offset: 1

Views

Author

Lars Blomberg, Feb 14 2022

Keywords

Comments

By symmetry, if (i, j) is a solution then so is (j, i). When j=i we get n = 3i, corresponding to the solution 1/2 + 1/2 = 1. Therefore, when 3|n, a(n) > 0 and odd, otherwise a(n) >= 0 and even.
For n < 10^6, the largest term is a(720720) = 285, and 483188 terms are 0.
Other record terms: a(1081080) = 369, a(2162160) = 457, a(3243240) = 481, a(4324320) = 533, a(5405400) = 559, a(6126120) = 597. Record terms with index >= 360360 appear to occur at indices that are multiples of 180180. - Chai Wah Wu, Feb 15 2022

Examples

			For n = 3: (i, j) = (1, 1), so a(3) = 1. (1/2 + 1/2 = 1)
For n = 18: (i, j) = (3, 8), (6, 6), (8, 3), so a(18) = 3. (3/15 + 8/10 = 1/5 + 4/5 = 1)
For n = 20: (i, j) = (5, 8), (8, 5), so a(20) = 2.
For n = 36: (i, j) = (6, 16), (8, 15), (12, 12), (15, 8), (16, 6), so a(36) = 5.
		

Crossrefs

Programs

  • PARI
    a(n)={my(x=n^2, y=2*n); sum(i=1,(n-1)/2, x-=2*n; y-=3; if(x%y==0,1,0))}
    
  • Python
    from sympy.abc import i, j
    from sympy.solvers.diophantine.diophantine import diop_quadratic
    def A351532(n):
        return sum(1 for d in diop_quadratic(n**2+3*i*j-2*n*(i+j)) if 0 < d[0] < n and 0 < d[1] < n) # Chai Wah Wu, Feb 15 2022

Formula

The original equation can be solved for j giving j = (n(n - 2i)) / (2n - 3i). Varying i from 1 to n-1, a(n) is given by the number of integer values of j, 0 < j < n.

Extensions

Data section extended up to a(105) by Antti Karttunen, Jan 17 2025

A297896 Largest integer that cannot be represented as x1^2 + ... + xk^2, where k >= 1, n <= x1 < ... < xk, and 1/x1 + ... + 1/xk = 1.

Original entry on oeis.org

8542, 8542, 8623, 9623, 12367, 15707, 19116, 24317
Offset: 1

Views

Author

Max Alekseyev, Jan 20 2018

Keywords

Comments

Terms a(1)=a(2)=8542 correspond to sequence A297895, and a(6)=15707 corresponds to sequence A303400.

Crossrefs

Showing 1-3 of 3 results.