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)
5396 is in the sequence as 5396 = 1^4 + 1^4 + 4^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4.
8789 is in the sequence as 8789 = 5^4 + 5^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4 + 7^4.
12469 is in the sequence as 12469 = 1^4 + 3^4 + 4^4 + 4^4 + 5^4 + 5^4 + 5^4 + 10^4. (End)
MATHEMATICA
Select[Range[500], AnyTrue[PowersRepresentations[#, 8, 4], First[#]>0&]&] (* Jean-François Alcover, Jul 18 2017 *)
PROG
(Python)
from itertools import combinations_with_replacement as mc
from sympy import integer_nthroot
def iroot4(n): return integer_nthroot(n, 4)[0]
def aupto(lim):
pows4 = set(i**4 for i in range(1, iroot4(lim)+1) if i**4 <= lim)
return sorted(t for t in set(sum(c) for c in mc(pows4, 8)) if t <= lim)
print(aupto(568)) # Michael S. Branicky, Aug 23 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved