OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
Eric Weisstein's World of Mathematics, Biquadratic Number.
EXAMPLE
From David A. Corneth, Aug 04 2020: (Start)
22418 is in the sequence as 22418 = 1^4 + 2^4 + 7^4 + 10^4 + 10^4.
30004 is in the sequence as 30004 = 2^4 + 3^4 + 5^4 + 11^4 + 11^4.
39028 is in the sequence as 39028 = 5^4 + 5^4 + 7^4 + 11^4 + 12^4. (End)
MATHEMATICA
Select[Range[1000], AnyTrue[PowersRepresentations[#, 5, 4], First[#]>0&]&] (* Jean-François Alcover, Jul 18 2017 *)
PROG
(Python)
from itertools import combinations_with_replacement as combs_with_rep
def aupto(limit):
qd = [k**4 for k in range(1, int(limit**.25)+2) if k**4 + 4 <= limit]
ss = set(sum(c) for c in combs_with_rep(qd, 5))
return sorted(s for s in ss if s <= limit)
print(aupto(800)) # Michael S. Branicky, May 20 2021
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved