Simple calculations with permutations in Go