OFFSET
1,3
EXAMPLE
a(70) = 77 corresponds to A230097(70) = 34895284158283. Its square 1217680856487316499797508089 is the smallest and the only 90-bit square with this Hamming weight.
PROG
(Python 3.10+)
from itertools import count, islice
def A357304_gen(): # generator of terms
c = -1
for n in count(0):
if (m := (n**2).bit_count() if sys.version_info >= (3, 10) else bin(n**2).count('1'))>c:
yield (c:=m)
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Hugo Pfoertner, Oct 01 2022
EXTENSIONS
Missing a(68)=75 and a(71)-a(80) from Bert Dobbelaere, Nov 20 2022
STATUS
approved