ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1204. Idempotents

why? 5^5=5 (mod 6) !!
Posted by wuwuwu 10 Apr 2002 13:19
look at sample input and output:
Sample Input
3
6
15
910186311
Sample Output
0 1 3 4
0 1 6 10
0 1 303395437 606790875
I think the first line of output is wrong!
5^5=3125=5(mod 6),anyone support me?
It's x*x not x^x! so 5*5=1(mod6) ^^
Posted by MadPsyentist/Sam 10 Apr 2002 18:05
> look at sample input and output:
> Sample Input
> 3
> 6
> 15
> 910186311
> Sample Output
> 0 1 3 4
> 0 1 6 10
> 0 1 303395437 606790875
> I think the first line of output is wrong!
> 5^5=3125=5(mod 6),anyone support me?
>