These are the forms I'm talking about:
- $a^{p}\equiv a\pmod p$
- $a^{p-1}\equiv 1\pmod p$
I thought that the only difference was that (1) is true even when p does divide a (producing a trivial 0==0 in that case).
But then I found out that (2) seems to be a stronger one, by which I mean that if I'm trying them both for a p equal to a Carmichael number 561, then (1) holds for any a, and (2) breaks for some a's (those which are not coprime with p, I guess) thus exposing that p is not a prime (e.g. for 17 (1) holds and (2) gives 34).
(1) is also called "weaker definition" here.
But I can't find any strict definition of "stronger" for it, is there any?
PS: I know that there are better tests, I'm just trying to make sense of this one.