A Generalization Euclidean Algorithm Approach for Solving Multi-Variable Linear Diophantine Equations
Abstract
Multi-variable linear Diophantine equations of the form a1x1 + a2x2 + ··· + anxn = b, where ai, b ∈ Z, have various applications in many fields, including cryptography, chemistry, and statistics, where they can be used to determine public and private keys, balance chemical equations, and model scheduling problems, respectively. The equation has infinitely many integer solutions if gcd(a1, a2, …, an) divides b. Two well-known algorithms for finding solutions are the Smith normal form and integer lattice methods. This paper presents an alternative approach for obtaining the general solution of the equation. The proposed method applies the generalized Euclidean algorithm to compute gcd(a1, a2, …, an), followed by a back-substitution process through the algorithm's steps to express the greatest common divisor as a linear combination of a1, a2, …, an. This linear combination is then multiplied by b/gcd(a1, a2, …, an) to obtain a particular solution of the equation. Finally, the general solution is constructed from the resulting particular solution.
Keywords
Full Text:
PDFReferences
[1] M. Deora and P. Pal. “Efficient algorithm for linear Diophantine equations in two variables”. arXiv preprint arXiv:2507.23216, 2025. DOI: https://doi.org/10.48550/arXiv.2507.23216.
[2] A. Prakash. “Solutions of linear Diophantine equations using elementary methods”. Panamerican Mathematical Journal, vol. 34, no. 3, pp. 295–314, 2024. DOI: https://doi.org/10.52783/pmj.v34.i3.6420.
[3] J. A. Buchmann. Introduction to Cryptography. Springer, 2000, 285 pp. DOI: https://doi.org/10.1007/978-1-4684-0496-8.
[4] P. A. Kameswari, S. S. Sriniasarao, and A. Belay. “An application of linear Diophantine equations to cryptography”. Advances in Mathematics: Scientific Journal, vol. 10, no. 6, pp. 2799–2806, 2021. DOI: https://doi.org/10.37418/amsj.10.6.8.
[5] T. Purwandi and S. Rozi. “Pemanfaatan persamaan Diophantine linear dalam membangkitkan kunci privat pada algoritma RSA”. Jurnal Riset Mahasiswa Matematika, vol. 4, no. 6, pp. 301–309, 2025. DOI: https://doi.org/10.18860/jrmm.v4i6.34656.
[6] N. Hirata-Kohno and A. Petho. “A key exchange protocol based on Diophantine equations and S-integers”. JSIAM Letters, vol. 6, pp. 85–88, 2014. DOI: https://doi.org/10.14495/jsiaml.6.85.
[7] B. S. S. Srinivasarao. “A key exchange with linear Diophantine equations”. M.Phil. dissertation, Andhra University, 2020.
[8] Y. Zhou. “Role of linear Diophantine equations in RSA encryption”. Theoretical and Natural Science, vol. 42, no. 1, pp. 108–111, 2024. DOI: https://doi.org/10.54254/2753-8818/42/20240670.
[9] V. Pandichelvi and S. Saranya. “Application of system linear Diophantine equations in balancing chemical equations”. International Journal for Research in Applied Science and Engineering Technology, vol. 10, no. 10, pp. 917–920, 2022. DOI: https://doi.org/10.22214/ijraset.2022.47111.
[10] S. Souravlas, S. Anastasiadou, and A. Sifaleras. “Mathematical modeling for further improving task scheduling on big data systems”. Computational Management Science, vol. 20, article 40, 2023. DOI: https://doi.org/10.1007/s10287-023-00474-y.
[11] S. Katayama. “Length of integer solutions of linear Diophantine equations and related problems”. Journal of Mathematics, the University of Tokushima, vol. 57, pp. 19–29, 2023. URL: https://www-math.st.tokushima-u.ac.jp/journal/2023/2023-2.pdf.
[12] T. Barron. “GPU-accelerated factorization sets in numerical semigroups via parallel bounded lexicographic streams”. arXiv preprint arXiv:2405.07989, 2024. DOI: https://doi.org/10.48550/arXiv.2405.07989.
[13] R. Amer. “The mathematical analysis of linear Diophantine equations with two and three variables and its applications”. The Egyptian International Journal of Engineering Sciences and Technology, vol. 42, no. 1, pp. 23–28, 2023. DOI: https://doi.org/10.21608/eijest.2022.164811.1185.
[14] R. Quinlan, M. Shau, and F. Szechtman. “Linear Diophantine equations in several variables”. Linear Algebra and its Applications, vol. 640, pp. 67–90, 2022. DOI: https://doi.org/10.1016/j.laa.2021.12.020.
[15] K.-M. Klein and J. Reuter. “Simple lattice basis computation—The generalization of the Euclidean algorithm”. arXiv preprint arXiv:2311.15902, 2023. DOI: https://doi.org/10.48550/arXiv.2311.15902.
[16] K. H. Rosen. Elementary Number Theory. 6th ed. Addison-Wesley, 2011, 766 pp. URL: https://books.google.com/books?id=JqycRAAACAAJ.
[17] P. J. Arias. Elementary Number Theory. Toronto Academic Press, 2024, 261 pp. URL: https://books.google.com/books?id=WIA70AEACAAJ.
DOI: https://doi.org/10.18860/cauchy.v11i2.43242
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Ikhsan Abdul Ro'uf, Hery Susanto, I Made Sulandra

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Editorial Office
Mathematics Department,
Maulana Malik Ibrahim State Islamic University of Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
e-mail: cauchy@uin-malang.ac.id

CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







