cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A003342 Numbers that are the sum of 8 positive 4th powers.

This page as a plain text file.
%I A003342 #32 Feb 16 2025 08:32:27
%S A003342 8,23,38,53,68,83,88,98,103,113,118,128,133,148,163,168,178,183,193,
%T A003342 198,213,228,243,248,258,263,278,293,308,323,328,338,343,353,358,368,
%U A003342 373,388,403,408,418,423,433,438,453,468,483,488,498,503,518,533,548,563,568
%N A003342 Numbers that are the sum of 8 positive 4th powers.
%H A003342 David A. Corneth, <a href="/A003342/b003342.txt">Table of n, a(n) for n = 1..10000</a> (first 1000 terms from T. D. Noe)
%H A003342 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/BiquadraticNumber.html">Biquadratic Number.</a>
%e A003342 From _David A. Corneth_, Aug 04 2020: (Start)
%e A003342 5396 is in the sequence as 5396 = 1^4 + 1^4 + 4^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4.
%e A003342 8789 is in the sequence as 8789 = 5^4 + 5^4 + 5^4 + 5^4 + 6^4 + 6^4 + 6^4 + 7^4.
%e A003342 12469 is in the sequence as 12469 = 1^4 + 3^4 + 4^4 + 4^4 + 5^4 + 5^4 + 5^4 + 10^4. (End)
%t A003342 Select[Range[500], AnyTrue[PowersRepresentations[#, 8, 4], First[#]>0&]&] (* _Jean-François Alcover_, Jul 18 2017 *)
%o A003342 (Python)
%o A003342 from itertools import combinations_with_replacement as mc
%o A003342 from sympy import integer_nthroot
%o A003342 def iroot4(n): return integer_nthroot(n, 4)[0]
%o A003342 def aupto(lim):
%o A003342     pows4 = set(i**4 for i in range(1, iroot4(lim)+1) if i**4 <= lim)
%o A003342     return sorted(t for t in set(sum(c) for c in mc(pows4, 8)) if t <= lim)
%o A003342 print(aupto(568)) # _Michael S. Branicky_, Aug 23 2021
%Y A003342 Cf. A000583, A003331, A003341, A003343, A003353, A345577, A345833.
%K A003342 nonn,easy
%O A003342 1,1
%A A003342 _N. J. A. Sloane_