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.
%I A224983 #8 Nov 20 2021 09:35:39 %S A224983 204,221,236,240,249,255,260,261,268,269,272,276,279,281,284,285,288, %T A224983 289,293,295,296,299,300,303,305,306,309,311,312,316,317,320,321,323, %U A224983 324,325,326,327,329,332,333,335,336,337,338,339,340,341,344,345,347,348 %N A224983 Numbers that are the sum of exactly 8 distinct nonzero squares. %H A224983 Reinhard Zumkeller, <a href="/A224983/b224983.txt">Table of n, a(n) for n = 1..1000</a> %H A224983 Paul T. Bateman, Adolf J. Hildebrand, and George B. Purdy, <a href="http://matwbn.icm.edu.pl/ksiazki/aa/aa67/aa6745.pdf">Sums of distinct squares</a>, Acta Arithmetica 67 (1994), pp. 349-380. %H A224983 <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a> %e A224983 a(1) = 1 + 4 + 9 + 16 + 25 + 36 + 49 + 64 = 204 = A000330(8); %e A224983 a(2) = 1 + 4 + 9 + 16 + 25 + 36 + 49 + 81 = 221; %e A224983 a(3) = 1 + 4 + 9 + 16 + 25 + 36 + 64 + 81 = 236; %e A224983 a(4) = 1 + 4 + 9 + 16 + 25 + 36 + 49 + 100 = 240; %e A224983 a(5) = 1 + 4 + 9 + 16 + 25 + 49 + 64 + 81 = 249. %t A224983 nmax = 1000; %t A224983 S[n_] := S[n] = Union[Total /@ Subsets[ %t A224983 Range[Floor[Sqrt[n]]]^2, {8}]][[1 ;; nmax]]; %t A224983 S[nmax]; %t A224983 S[n = nmax + 1]; %t A224983 While[S[n] != S[n - 1], n++]; %t A224983 S[n] (* _Jean-François Alcover_, Nov 20 2021 *) %o A224983 (Haskell) %o A224983 a224983 n = a224983_list !! (n-1) %o A224983 a224983_list = filter (p 8 $ tail a000290_list) [1..] where %o A224983 p k (q:qs) m = k == 0 && m == 0 || %o A224983 q <= m && k >= 0 && (p (k - 1) qs (m - q) || p k qs m) %Y A224983 Cf. A003995, A004431, A004432, A004433, A004434, A224981, A224982, A000290. %K A224983 nonn %O A224983 1,1 %A A224983 _Reinhard Zumkeller_, Apr 22 2013