Close, but doesn't work if `n` is the proper power of 2. `int(np.log2(64) + 1)` yields 7, when we want it to yield 6.