Vocabulary
math.combinatorics.bits

Inputs
van integer


Outputs
wan integer


Word description
Generates the next bitwise permutation with the same number of set bits, given a previous lexicographical value.

Definition