OFFSET
1,2
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..1113
PROG
(Python)
from itertools import count, islice
def A384799_gen(): # generator of terms
s, m = {0}, 1
for n in count(1):
c = n+1
for i in range(n+1):
if (k:=n**2+i**2) in s:
c -= 1
else:
s.add(k)
if c>m:
yield n
m = c
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jun 17 2025
STATUS
approved
