compute the remainder when 2^(2^17) + 1 = 19
that + 1 is really throwing me off... I don't know how to deal with it.
Printable View
compute the remainder when 2^(2^17) + 1 = 19
that + 1 is really throwing me off... I don't know how to deal with it.
I assume you want to find the remainder ofmodulo
.
By the division algorithm we can writewhere
.
But then,.
To find the remainderwe need to simplify
modulo
.
First,.
Multiply both sides by seven to get,.
Therefore,.
Now,by Fermat's little theorem.
Sincewe see that
.
But this is remainder of onlyif you want to find remainder of
just add 1.