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.

A345571 Numbers that are the sum of seven fourth powers in five or more ways.

Original entry on oeis.org

6642, 6707, 6772, 6882, 6947, 7922, 7987, 8227, 8962, 9267, 9507, 9747, 10116, 10291, 10722, 10787, 10867, 10932, 10962, 11331, 11411, 11571, 12676, 12851, 12916, 13187, 13252, 13891, 13956, 14131, 14211, 14707, 14772, 14802, 14917, 14932, 14947, 15012, 15092
Offset: 1

Views

Author

David Consiglio, Jr., Jun 20 2021

Keywords

Examples

			6707 is a term because 6707 = 1^4 + 1^4 + 1^4 + 2^4 + 6^4 + 6^4 + 8^4 = 1^4 + 2^4 + 2^4 + 2^4 + 2^4 + 3^4 + 9^4 = 2^4 + 2^4 + 2^4 + 3^4 + 3^4 + 7^4 + 8^4 = 2^4 + 3^4 + 4^4 + 4^4 + 6^4 + 7^4 + 7^4 = 3^4 + 3^4 + 4^4 + 6^4 + 6^4 + 6^4 + 7^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 >= 5])
        for x in range(len(rets)):
            print(rets[x])