Question: ermat's Little Theorem: For any prime pp and integer aa , ap 1 1 modpap 1 1 modp. It happens that the converse to FLT

ermat's Little Theorem:
For any prime pp and integer aa, ap11modpap11modp.
It happens that the converse to FLT is often but not always true.
That is, if nn is composite and aa is an integer, then more often than not an11modnan11modn.
We can use this as the basis of a simple primality test, called the Fermat Test.
For a in Zna in Zn we make the following definitions.
1) We call aa a Fermat Liar for nn if an11modnan11modn, where a(0,1,n1)a(0,1,n1).
2) We call aa a Fermat Witness for nn if an11modnan11modn, where a(0,1,n1)a(0,1,n1).
If a number is composite, then 2 is very often a Fermat Witness.
What is the smallest composite integer nn greater than 38743874 for which 2 is not a Fermat Witness?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!