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.

A384799 Positions of records in A384797.

This page as a plain text file.
%I A384799 #12 Jul 07 2025 20:30:07
%S A384799 1,2,3,4,6,8,9,10,12,15,16,18,20,22,24,27,28,30,33,35,36,40,45,48,52,
%T A384799 54,55,56,60,65,70,78,80,90,95,100,105,108,110,120,130,135,140,150,
%U A384799 155,156,160,165,168,180,190,200,205,210,225,240,255,260,270,280,285,300
%N A384799 Positions of records in A384797.
%H A384799 Hugo Pfoertner, <a href="/A384799/b384799.txt">Table of n, a(n) for n = 1..1113</a>
%o A384799 (Python)
%o A384799 from itertools import count, islice
%o A384799 def A384799_gen(): # generator of terms
%o A384799     s, m = {0}, 1
%o A384799     for n in count(1):
%o A384799         c = n+1
%o A384799         for i in range(n+1):
%o A384799             if (k:=n**2+i**2) in s:
%o A384799                 c -= 1
%o A384799             else:
%o A384799                 s.add(k)
%o A384799         if c>m:
%o A384799             yield n
%o A384799             m = c
%o A384799 A384799_list = list(islice(A384799_gen(),30)) # _Chai Wah Wu_, Jul 07 2025
%Y A384799 Cf. A047800, A384797, A384798.
%K A384799 nonn
%O A384799 1,2
%A A384799 _Hugo Pfoertner_, Jun 17 2025