A345568 Numbers that are the sum of seven fourth powers in two or more ways.
262, 277, 292, 307, 342, 357, 372, 422, 437, 502, 517, 532, 547, 597, 612, 677, 772, 787, 852, 886, 901, 916, 966, 981, 1027, 1046, 1141, 1156, 1221, 1362, 1377, 1396, 1442, 1510, 1525, 1557, 1572, 1587, 1590, 1617, 1637, 1652, 1717, 1765, 1812, 1827, 1892
Offset: 1
Keywords
Examples
277 is a term because 277 = 1^4 + 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 4^4 = 1^4 + 1^4 + 2^4 + 2^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, 7): tot = sum(pos) keep[tot] += 1 rets = sorted([k for k, v in keep.items() if v >= 2]) for x in range(len(rets)): print(rets[x])