>>603
P = 6n + k
n = 1 , 2 , 3 , ・・・
k= 1 , -1

P^2 - 1 = (6n+k)^2 - 1
=36n^2 + 12nk
=12n*(3n+k)