login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A345570 Numbers that are the sum of seven fourth powers in four or more ways. 8

%I #6 Jul 31 2021 17:57:57

%S 2932,4147,4212,4387,5427,5602,5667,6627,6642,6692,6707,6772,6817,

%T 6822,6837,6852,6867,6882,6947,7012,7122,7251,7316,7491,7747,7857,

%U 7922,7987,8052,8097,8162,8227,8402,8467,8532,8707,8787,8962,9027,9092,9157,9172,9202

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

%H Sean A. Irvine, <a href="/A345570/b345570.txt">Table of n, a(n) for n = 1..10000</a>

%e 4147 is a term because 4147 = 1^4 + 1^4 + 1^4 + 2^4 + 2^4 + 2^4 + 8^4 = 1^4 + 1^4 + 1^4 + 4^4 + 6^4 + 6^4 + 6^4 = 2^4 + 2^4 + 3^4 + 3^4 + 4^4 + 6^4 + 7^4 = 2^4 + 3^4 + 3^4 + 3^4 + 6^4 + 6^4 + 6^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, 1000)]

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

%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. A345522, A345561, A345569, A345571, A345579, A345607, A345826.

%K nonn

%O 1,1

%A _David Consiglio, Jr._, Jun 20 2021

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 18:09 EDT 2024. Contains 372020 sequences. (Running on oeis4.)