If N is prime, Fermat's little theorem gives b2sd≡1. If bd≡1, the strong test already passes. Otherwise let j≥1 be the first index with b2jd≡1. Its preceding value u=b2j−1d satisfies u2=1 and u=1 in the field FN. Since (u−1)(u+1)=0 in afield, u=−1. The index j−1 lies between zero and s−1, so every coprime base passes the strong test when N is prime.