A344240 Numbers that are the sum of three fourth powers in exactly three ways.
811538, 1733522, 2798978, 3750578, 4614722, 6573938, 7303842, 8878898, 12771458, 12984608, 13760258, 14677362, 15601698, 16196193, 17868242, 21556178, 22349522, 25190802, 25589858, 27736352, 29969282, 41532498, 44048498, 44783648, 45182018, 50944418, 54894242, 57052562, 59165442, 60009248
Offset: 1
Keywords
Examples
2798978 is a member of this sequence because 2798978 = 6^4 + 31^4 + 37^4 = 9^4 + 29^4 + 38^4 = 13^4 + 26^4 + 39^4
Links
- David Consiglio, Jr., Table of n, a(n) for n = 1..5129
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,50)] for pos in cwr(power_terms,3): 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])
Comments