Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A345833
Numbers that are the sum of eight fourth powers in exactly one ways.
7
8, 23, 38, 53, 68, 83, 88, 98, 103, 113, 118, 128, 133, 148, 163, 168, 178, 183, 193, 198, 213, 228, 243, 248, 258, 328, 338, 353, 368, 403, 408, 418, 433, 468, 483, 488, 498, 568, 578, 593, 608, 632, 643, 647, 648, 658, 662, 663, 673, 677, 692, 707, 708, 712
OFFSET
1,1
COMMENTS
Differs from A003342 at term 26 because 263 = 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 3^4 + 3^4 + 3^4 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 4^4.
LINKS
EXAMPLE
23 is a term because 23 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 2^4.
PROG
(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, 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