login
A346326
Numbers that are the sum of eight fifth powers in exactly one way.
6
8, 39, 70, 101, 132, 163, 194, 225, 250, 256, 281, 312, 343, 374, 405, 436, 467, 492, 523, 554, 585, 616, 647, 678, 734, 765, 796, 827, 858, 889, 976, 1007, 1031, 1038, 1062, 1069, 1093, 1100, 1124, 1155, 1186, 1217, 1218, 1248, 1249, 1273, 1280, 1304, 1311
OFFSET
1,1
COMMENTS
Differs from A003353 at term 156 because 4100 = 1^5 + 1^5 + 1^5 + 3^5 + 3^5 + 3^5 + 3^5 + 5^5 = 1^5 + 1^5 + 1^5 + 1^5 + 4^5 + 4^5 + 4^5 + 4^5.
LINKS
EXAMPLE
8 is a term because 8 = 1^5 + 1^5 + 1^5 + 1^5 + 1^5 + 1^5 + 1^5 + 1^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, 8):
tot = sum(pos)
keep[tot] += 1
rets = sorted([k for k, v in keep.items() if v == 1])
for x in range(len(rets)):
print(rets[x])
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved