An O(2(N)) time primality test for Generalized Cullen Numbers
Abstract
Generalized Cullen Numbers are positive integers of the form Cb(n):=nbn+1. In this work we generalize some known divisibility properties of Cullen Numbers and present two primality tests for this family of integers. The first test is based in the following property of primes from this family: nbn (-1)b (mod nbn+1). It is stronger and has less computational cost than Fermat's test (for bases b and n) and than Miller-Rabin's test (for base n). Pseudoprimes for this new test seem to be very scarce, only 4 pseudoprimes have been found among the many millions of Generalized Cullen Numbers tested. We also present a second, more demanding, test for wich no pseudoprimes have been found. This test leads to a "quasi-deterministic" test, running in O(2(N)) time, which might be very useful in the search of Generalized Cullen Primes.