While applying the fermets lil theorem, how did we assume p to be prime?
Lights new car problem
Because that is what the theorem states,
Likes is a proven fact that p needs to be prime for the theorem to hold true
refer to below article:
Yes, that is what I’m asking. In the problem we have applied this theorem and we can do so only if p is prime. How do we know that p is prime?
we are taking the mod value to be 10^9 + 7 which is a prime no. so here the fermets condition is fulfilled
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.