first(n) = { pows2 = vector(logint(n, 2), i, 1<