A detailed investigation is given of the possible use of cubic recurrences in primality tests. No attempt is made in this abstract to cover all of the many topics examined in the paper. Define a doubly infinite set of sequences
A
(
n
)
A(n)
by
\[
A
(
n
+
3
)
=
r
A
(
n
+
2
)
−
s
A
(
n
+
1
)
+
A
(
n
)
A(n + 3) = rA(n + 2) - sA(n + 1) + A(n)
\]
with
A
(
−
1
)
=
s
A( - 1) = s
,
A
(
0
)
=
3
A(0) = 3
, and
A
(
1
)
=
r
A(1) = r
. If n is prime,
A
(
n
)
≡
A
(
1
)
(
mod
n
)
A(n) \equiv A(1)\;\pmod n
. Perrin asked if any composite satisfies this congruence if
r
=
0
r = 0
,
s
=
−
1
s = - 1
. The answer is yes, and our first example leads us to strengthen the condition by introducing the "signature" of n:
\[
A
(
−
n
−
1
)
,
A
(
−
n
)
,
A
(
−
n
+
1
)
,
A
(
n
−
1
)
,
A
(
n
)
,
A
(
n
+
1
)
A( - n - 1),A( - n),A( - n + 1),A(n - 1),A(n),A(n + 1)
\]
mod
n
\bmod n
. Primes have three types of signatures depending on how they split in the cubic field generated by
x
3
−
r
x
2
+
s
x
−
1
=
0
{x^3} - r{x^2} + sx - 1 = 0
. Composites with "acceptable" signatures do exist but are very rare. The S-type signature, which corresponds to the completely split primes, has a very special role, and it may even be that I and Q type composites do not occur in Perrin’s sequence even though the I and Q primes comprise
5
/
6
5/6
ths of all primes.
A
(
n
)
(
mod
n
)
A(n)\;\pmod n
is easily computable in
O
(
log
n
)
O(\log n)
operations. The paper closes with a p-adic analysis. This powerful tool sets the stage for our [12] which will be Part II of the paper.