A384799 Positions of records in A384797.
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, 54, 55, 56, 60, 65, 70, 78, 80, 90, 95, 100, 105, 108, 110, 120, 130, 135, 140, 150, 155, 156, 160, 165, 168, 180, 190, 200, 205, 210, 225, 240, 255, 260, 270, 280, 285, 300
Offset: 1
Keywords
Links
- Hugo Pfoertner, Table of n, a(n) for n = 1..1113
Programs
-
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 A384799_list = list(islice(A384799_gen(),30)) # Chai Wah Wu, Jul 07 2025