Vantieghems theorem

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In number theory, Vantieghems theorem is a primality criterion. It states that a natural number n≥3 is prime if and only if

1kn1(2k1)nmod(2n1).

Similarly, n is prime, if and only if the following congruence for polynomials in X holds:

1kn1(Xk1)n(Xn1)/(X1)mod(Xn1)

or:

1kn1(Xk1)nmod(Xn1)/(X1).

Example

Let n=7 forming the product 1*3*7*15*31*63 = 615195. 615195 = 7 mod 127 and so 7 is prime
Let n=9 forming the product 1*3*7*15*31*63*127*255 = 19923090075. 19923090075 = 301 mod 511 and so 9 is composite

References

  • Script error: No such module "Citation/CS1".. An article with proof and generalizations.
  • Script error: No such module "Citation/CS1".