Add Z/nZ ring excercise

This commit is contained in:
kalmarek 2018-05-18 11:56:07 +02:00
commit a89f1ff8a3
1 changed files with 22 additions and 0 deletions

22
01-Pierścień-Zn.md Normal file
View File

@ -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]]`