In permuted block randomization, a block size of $4$ has $6$ possible permutations:
$AABB, ABAB, ABBA, BBAA, BABA, and BAAB$
And a block size of 6 has 8 possible permutations:
$AAABBB, BBBAAA, AABBAB, BBAABA, ABABAB, BABABA, ABAABB,$ and $BABBAA$
What formula is used to generate these permutations? Each block must contain an equal number of $As$ and $Bs$. Why isn't $ABBAAB$ a possible permutation when using a block size of $6$?