Proth's theorem. Any suggestions?

1)

Let N = the number to test

a^(2*N) - a^(N-1)*(a^2+1) + 1 == 0 (mod N(N+2))

2)

Let N = the number to test

a^(2*(N-2)) - a^(N-3)*(a^2+1) + 1 == 0 (mod N(N-2))

Sorry, an error occurred while loading the content.

Proth's theorem. Any suggestions?

1)

Let N = the number to test

a^(2*N) - a^(N-1)*(a^2+1) + 1 == 0 (mod N(N+2))

2)

Let N = the number to test

a^(2*(N-2)) - a^(N-3)*(a^2+1) + 1 == 0 (mod N(N-2))