For how many integers a satisfying 1≤a≤23 is it true that a−1≡a(mod24)?
a−1≡a(mod24)⟺a2≡1(mod24)a2−1=24k, k∈Z
|{1,5,7,11,13,17,19,23}|=8
We notice that these are primes such that p2>24There must be an algebraic reason for this and I'll see if I can dig it up