Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A345635
Numbers that are the sum of ten fifth powers in three or more ways.
6
8194, 21940, 52419, 52450, 52481, 52661, 52692, 52903, 53442, 53473, 53684, 54465, 54520, 54551, 54582, 54762, 54793, 55004, 55543, 55574, 55691, 55722, 55785, 55933, 56566, 56714, 57644, 57675, 57886, 58667, 58815, 60194, 60225, 60436, 60768, 61217, 62295
OFFSET
1,1
LINKS
EXAMPLE
21940 is a term because 21940 = 1^5 + 2^5 + 2^5 + 5^5 + 5^5 + 5^5 + 5^5 + 5^5 + 5^5 + 5^5 = 1^5 + 3^5 + 4^5 + 4^5 + 4^5 + 4^5 + 4^5 + 4^5 + 6^5 + 6^5 = 3^5 + 3^5 + 3^5 + 3^5 + 3^5 + 4^5 + 4^5 + 5^5 + 6^5 + 6^5.
PROG
(Python)
from itertools import combinations_with_replacement as cwr
from collections import defaultdict
keep = defaultdict(lambda: 0)
power_terms = [x**5 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])
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved