\\ positive terms of A332520 vv = [0] nb = 0 W = 2^X=4 explore(v, w) = { if (w==W, if (nb==#vv, vv = concat(vv, vector(#vv)); ); vv[nb++] = v, \\ prepend or append zeros explore(v, 2*w); explore(v< t<=mx, setbinop(bitor, tt, vv)); for (k=1, #tt, if (tt[k]>mx, break, a[tt[k]] = min(a[tt[k]], v) ); ); while (a[u]!=oo, print (u " " a[u] " " hammingweight(u)); if (u++>mx, break (2); ); ); ); } quit