login
Numbers that are the sum of three fourth powers in four or more ways.
6

%I #6 Jul 31 2021 18:29:07

%S 5978882,15916082,20621042,22673378,30623138,33998258,39765362,

%T 48432482,53809938,61627202,65413922,74346818,84942578,88258898,

%U 95662112,103363442,117259298,128929682,131641538,137149922,143244738,155831858,158811842,167042642,174135122,175706258,188529362

%N Numbers that are the sum of three fourth powers in four or more ways.

%H David Consiglio, Jr., <a href="/A344277/b344277.txt">Table of n, a(n) for n = 1..9084</a>

%e 20621042 is a member of this sequence because 20621042 = 5^4 + 54^4 + 59^4 = 10^4 + 51^4 + 61^4 = 25^4 + 46^4 + 63^4 = 26^4 + 39^4 + 65^4

%o (Python)

%o from itertools import combinations_with_replacement as cwr

%o from collections import defaultdict

%o keep = defaultdict(lambda: 0)

%o power_terms = [x**4 for x in range(1,50)]

%o for pos in cwr(power_terms,3):

%o tot = sum(pos)

%o keep[tot] += 1

%o rets = sorted([k for k,v in keep.items() if v >= 4])

%o for x in range(len(rets)):

%o print(rets[x])

%Y Cf. A343968, A344239, A344278, A344352, A344364.

%K nonn

%O 1,1

%A _David Consiglio, Jr._, May 13 2021