Journal of Indian Acad. Math.
ISSN: 0970-5120
Vol. 48, No. 1 (2026) pp. 16–22.
CRYPTOGRAPHIC ALGORITHM BASED ON
GENERALIZED PELL EQUATION INVOLVING SPHENIC
NUMBERS
J. Kannan1∗, K. Kaleeswari2, and A. Deepshika3
Abstract. One of the key components for the secure transmission of messages is cryp-
tography. Strong algorithms are now required in order to convey a message to another
person. For encryption and decryption, modern academics use several mathematical ideas,
most notably number theory. In this study, we developed a method that fixes d as a prime
integer and n as the square of the sphenic numbers, utilizing the well-known generalized
Pell equation as x2 − dy2 = n.
Keywords: encryption, decryption, the matrix Qp∗, generalized Pell equation, Sphenic
numbers.
2010 AMS Subject Classification: 11A05, 11A07, 11B37, 11D09, 11D99.
1. Introduction
Number theory - a basket of properties of numbers, especially integers, is one of the
most widely used and most attractive theories in Mathematics. It is more advantageous
subject to master because it encompasses a variety of elements. The creation of Diophan-
tine equations is one example. These equations are polynomial equations with integer
coefficients and two or more unknowns such that the only solutions of interest are the
integer ones.
Diophantine analysis, the mathematical study of Diophantine problems, comprises of
a special type of equation, commonly known as Pell equation [1]. It is one among the
various Diophantine equations and it takes the form
x2 − dy2 = 1
(1)
where d is a fixed positive integer, not a perfect square. It also has been proved that
equation (1) has infinitely many solutions in positive integers. This Pell equation is
generalized as
x2 − dy2 = n
(2)
for some integer n.
Let p be a prime and (xk, yk) be positive integer solutions of the equation x2 − py2 = 1.
ꢀ
ꢁ
x1 py1
Using these solutions we can define the matrix Qp∗ as Qp∗ =
[3]. The speciality
y1 x1
of this matrix is its kth power can be obtained directly from the kth solution (xk, yk) of
ꢀ
ꢁ
xk pyk
equation x2 − py2 = 1. That is, (Qp∗)k =
.
yk
xk
16