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.

A345591 Numbers that are the sum of nine fourth powers in seven or more ways.

This page as a plain text file.
%I A345591 #6 Jul 31 2021 17:39:05
%S A345591 6739,6804,6854,6869,6979,7029,7044,7094,7109,7269,7284,7844,7909,
%T A345591 7939,8004,8019,8084,8149,8194,8244,8259,8309,8324,8389,8434,8499,
%U A345591 8564,8628,8739,8868,8979,9044,9059,9124,9189,9219,9234,9254,9284,9299,9364,9414,9429
%N A345591 Numbers that are the sum of nine fourth powers in seven or more ways.
%H A345591 Sean A. Irvine, <a href="/A345591/b345591.txt">Table of n, a(n) for n = 1..10000</a>
%e A345591 6804 is a term because 6804 = 1^4 + 1^4 + 1^4 + 2^4 + 2^4 + 2^4 + 4^4 + 7^4 + 8^4 = 1^4 + 1^4 + 1^4 + 2^4 + 2^4 + 3^4 + 6^4 + 6^4 + 8^4 = 1^4 + 1^4 + 1^4 + 4^4 + 4^4 + 6^4 + 6^4 + 6^4 + 7^4 = 1^4 + 2^4 + 2^4 + 2^4 + 2^4 + 2^4 + 3^4 + 3^4 + 9^4 = 2^4 + 2^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 7^4 + 8^4 = 2^4 + 2^4 + 3^4 + 3^4 + 4^4 + 4^4 + 6^4 + 7^4 + 7^4 = 2^4 + 3^4 + 3^4 + 3^4 + 4^4 + 6^4 + 6^4 + 6^4 + 7^4 = 3^4 + 3^4 + 3^4 + 3^4 + 6^4 + 6^4 + 6^4 + 6^4 + 6^4.
%o A345591 (Python)
%o A345591 from itertools import combinations_with_replacement as cwr
%o A345591 from collections import defaultdict
%o A345591 keep = defaultdict(lambda: 0)
%o A345591 power_terms = [x**4 for x in range(1, 1000)]
%o A345591 for pos in cwr(power_terms, 9):
%o A345591     tot = sum(pos)
%o A345591     keep[tot] += 1
%o A345591     rets = sorted([k for k, v in keep.items() if v >= 7])
%o A345591     for x in range(len(rets)):
%o A345591         print(rets[x])
%Y A345591 Cf. A345546, A345582, A345590, A345592, A345600, A345624, A345849.
%K A345591 nonn
%O A345591 1,1
%A A345591 _David Consiglio, Jr._, Jun 20 2021