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.

A384798 Records in A384797.

This page as a plain text file.
%I A384798 #13 Jul 07 2025 20:28:23
%S A384798 2,3,4,5,7,8,9,10,12,14,15,17,18,19,21,22,23,26,27,28,31,34,37,38,39,
%T A384798 40,42,44,49,51,56,58,64,69,71,73,77,79,82,92,94,101,104,108,109,111,
%U A384798 116,118,120,129,136,140,141,155,160,172,174,181,190,193,194,208,209
%N A384798 Records in A384797.
%H A384798 Hugo Pfoertner, <a href="/A384798/b384798.txt">Table of n, a(n) for n = 1..1113</a>
%o A384798 (Python)
%o A384798 from itertools import count, islice
%o A384798 def A384798_gen(): # generator of terms
%o A384798     s, m = {0}, 1
%o A384798     for n in count(1):
%o A384798         c = n+1
%o A384798         for i in range(n+1):
%o A384798             if (k:=n**2+i**2) in s:
%o A384798                 c -= 1
%o A384798             else:
%o A384798                 s.add(k)
%o A384798         if c>m:
%o A384798             yield c
%o A384798             m = c
%o A384798 A384798_list = list(islice(A384798_gen(),30)) # _Chai Wah Wu_, Jul 07 2025
%Y A384798 Cf. A047800, A384797, A384799.
%K A384798 nonn
%O A384798 1,1
%A A384798 _Hugo Pfoertner_, Jun 17 2025