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.

A345855 Numbers that are the sum of ten fourth powers in exactly three ways.

Original entry on oeis.org

520, 535, 550, 600, 615, 680, 775, 790, 855, 1030, 1144, 1159, 1224, 1365, 1380, 1399, 1445, 1540, 1555, 1605, 1635, 1685, 1700, 1768, 1795, 1815, 1830, 1860, 1875, 1895, 1989, 2070, 2164, 2229, 2244, 2439, 2485, 2580, 2595, 2645, 2675, 2680, 2695, 2710, 2755
Offset: 1

Views

Author

David Consiglio, Jr., Jun 26 2021

Keywords

Comments

Differs from A345596 at term 21 because 1620 = 1^4 + 1^4 + 1^4 + 3^4 + 4^4 + 4^4 + 4^4 + 4^4 + 4^4 + 4^4 = 2^4 + 3^4 + 3^4 + 3^4 + 3^4 + 4^4 + 4^4 + 4^4 + 4^4 + 4^4.

Examples

			535 is a term because 535 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 4^4 + 4^4 = 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 4^4 = 1^4 + 2^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^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, 10):
        tot = sum(pos)
        keep[tot] += 1
        rets = sorted([k for k, v in keep.items() if v == 3])
        for x in range(len(rets)):
            print(rets[x])