commit a89f1ff8a3bde76a277d7e0c815fb37f9076c1f3 Author: kalmarek Date: Fri May 18 11:56:07 2018 +0200 Add Z/nZ ring excercise diff --git a/01-Pierścień-Zn.md b/01-Pierścień-Zn.md new file mode 100644 index 0000000..417a849 --- /dev/null +++ b/01-Pierścień-Zn.md @@ -0,0 +1,22 @@ +## Zadanie + +Napisać algorytm, który dla danego `n ∈ ℕ` znajdzie wszystkie: + 1. elementy odwracalne + 2. dzielniki zera + 3. elementy nilpotentne + 4. elementy idempotentne +w pierścieniu `{ℤ/nℤ, +, ⋅}`. + +### Przykłady: + +* Input: + > `4` +* Output: + > `[[1,3], [0,2], [0,2], [0,1]]` + +* Input: + > `6` +* Output: + > `[[1,5], [0,2,3,4], [0], [0,1,3,4]]` + +