OFFSET
1,1
EXAMPLE
a(8) = A361943(8)/8 = 136/8 = 17.
PROG
(PARI) a(n) = { forstep (m = n, oo, n, my (w = #binary(m)); if (w%2==0 && hammingweight(m)==2*hammingweight(m % (2^(w/2))), return (m/n))) }
(Python)
from itertools import count
def a(n): return next(m//n for m in count(n, n) if not (w:= m.bit_length())&1 and m.bit_count() == ((m>>(w>>1)).bit_count())<<1)
print([a(n) for n in range(1, 80)]) # Michael S. Branicky, Mar 31 2023 after Rémy Sigrist
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 31 2023
STATUS
approved