n2−1Using fermats little theorem if p is a prime number and N is prime to p then Np−1−1 is a multiple of p
n2−1=n3−1−1
As n is prime and 3 is also prime
∴ n2−1 is a mutiple of 3.......(i)
n2−1=(n−1)(n+1)
As n is prime greater than 3 so its is an odd integer.
⇒ (n−1) and (n+1) are two consecutive even integers.
So they will be of from 2n and 2n+2
⇒2n(2n+2)⇒4n(n+1)
as n is odd so (n+1) is a multiple of 2
⇒4n(n+1) is a mutiple of 8
⇒(n−1)(n+1) is a mutiple of 8.........(ii)
Hence using (i) and (ii) it is clear that n2−1 is a mutiple of 8