OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
MATHEMATICA
A392236Q[k_] := Total[#*Range[Length[#], 1, -1]] == 0 & [2*Most[IntegerDigits[k, 2]] - 1];
Select[Range[2500], A392236Q]
PROG
(Python)
from itertools import count, islice
def A392236_gen(): # generator of terms
yield 1
for n in count(2):
if not (m:=n.bit_length()+1)&2 and (sum(i if j == '1' else 0 for i, j in enumerate(bin(n)[:1:-1], 1))<<2)==m*(m-1):
yield n<<1
yield (n<<1)|1
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Xausa, Mar 01 2026
STATUS
approved
