OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Biquadratic Number.
EXAMPLE
From David A. Corneth, Aug 04 2020: (Start)
5971 is in the sequence as 5971 = 3^4 + 3^4 + 5^4 + 6^4 + 6^4 + 6^4 + 6^4.
12022 is in the sequence as 12022 = 1^4 + 2^4 + 7^4 + 7^4 + 7^4 + 7^4 + 7^4.
16902 is in the sequence as 16902 = 1^4 + 1^4 + 3^4 + 6^4 + 7^4 + 9^4 + 9^4. (End)
MAPLE
N:= 1000:
S1:= {seq(i^4, i=1..floor(N^(1/4)))}:
S2:= select(`<=`, {seq(seq(i+j, i=S1), j=S1)}, N):
S4:= select(`<=`, {seq(seq(i+j, i=S2), j=S2)}, N):
S6:= select(`<=`, {seq(seq(i+j, i=S2), j=S4)}, N):
sort(convert(select(`<=`, {seq(seq(i+j, i=S1), j=S6)}, N), list)); # Robert Israel, Jul 21 2019
PROG
(Python)
from itertools import combinations_with_replacement as mc
def aupto(limit):
qd = [k**4 for k in range(1, int(limit**.25)+2) if k**4 + 6 <= limit]
ss = set(sum(c) for c in mc(qd, 7))
return sorted(s for s in ss if s <= limit)
print(aupto(630)) # Michael S. Branicky, Jul 22 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved