static public void WriteNotations(int[] permutation) { int[][] cyclePermutation = WithoutRepetition.PermutationToCycle(permutation); int[,] matrixPermutation = WithoutRepetition.PermutationToMatrix(permutation); using (StreamWriter writer = new StreamWriter("log.txt", true)) { WriteDate(writer); WriteLine(writer, "Permutation in different notations:"); WriteLine(writer); Write(writer, "One-line notation: "); WriteVector(writer, permutation); WriteLine(writer); WriteLine(writer); Write(writer, "Canonical cycle notation: "); WriteCycle(writer, cyclePermutation); WriteLine(writer); WriteLine(writer); WriteLine(writer, "Matrix notation:"); WriteLine(writer); WriteMatrix(writer, matrixPermutation); WriteLine(writer); } }