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 03 2020: (Start)
5176 is in the sequence as 5176 = 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 5^4 + 5^4 + 5^4 + 5^4 + 7^4.
6901 is in the sequence as 6901 = 1^4 + 4^4 + 4^4 + 5^4 + 5^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4.
8502 is in the sequence as 8502 = 1^4 + 3^4 + 4^4 + 5^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4 + 7^4. (End)
PROG
(Python)
from itertools import count, takewhile, combinations_with_replacement as mc
def aupto(limit):
pows4 = list(takewhile(lambda x: x <= limit, (i**4 for i in count(1))))
sum10 = set(sum(c) for c in mc(pows4, 10) if sum(c) <= limit)
return sorted(sum10)
print(aupto(465)) # Michael S. Branicky, Oct 25 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved