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.

A345824 Numbers that are the sum of seven fourth powers in exactly two ways.

Original entry on oeis.org

262, 277, 292, 307, 342, 357, 372, 422, 437, 502, 517, 532, 547, 597, 612, 677, 772, 787, 852, 886, 901, 916, 966, 981, 1027, 1046, 1141, 1156, 1221, 1362, 1377, 1396, 1442, 1510, 1525, 1557, 1572, 1587, 1590, 1617, 1637, 1652, 1717, 1765, 1812, 1827, 1892
Offset: 1

Views

Author

David Consiglio, Jr., Jun 26 2021

Keywords

Comments

Differs from A345568 at term 61.

Examples

			277 is a term because 277 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 4^4 = 1^4 + 1^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^4.
		

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**4 for x in range(1, 1000)]
    for pos in cwr(power_terms, 7):
        tot = sum(pos)
        keep[tot] += 1
        rets = sorted([k for k, v in keep.items() if v == 2])
        for x in range(len(rets)):
            print(rets[x])