Note: Not all k bits flip for each call.
Bit A[0] flips n times for n calls.
Bit A[1] flips times for n calls.
Bit A[2] flips times for n calls.
Bit A[i] flips times for n calls, where i = 0, 1, ..., .
For i > , A[i] does not flip.