fix math/number-theory docs, permutations example