A345596 Numbers that are the sum of ten fourth powers in three or more ways.
520, 535, 550, 600, 615, 680, 775, 790, 855, 1030, 1144, 1159, 1224, 1365, 1380, 1399, 1445, 1540, 1555, 1605, 1620, 1635, 1685, 1700, 1768, 1795, 1815, 1830, 1860, 1875, 1895, 1989, 2070, 2164, 2229, 2244, 2439, 2485, 2580, 2595, 2645, 2660, 2675, 2680, 2695
Offset: 1
Keywords
Examples
535 is a term because 535 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 4^4 + 4^4 = 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 4^4 = 1^4 + 2^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 3^4 + 3^4 + 3^4.
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..10000
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, 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])