On the continued fraction with rational partial quotients
https://doi.org/10.22405/2226-8383-2024-25-2-43-66
Abstract
The Sorenson left shift 𝑘-ary gcd algorithm is one of the fastest greatest common divisor algorithms of two natural numbers. At the beginning a natural number 𝑘 > 2 is fixed, which is a parameter of algorithm. At each step we multiply smaller of two input numbers of current step, until it does not become greater of the second number. Then we calculate linear combination
between this number and the bigger of two input numbers. After that we replace the bigger of two input numbers by absolute value of the linear combination. At the end of the algorithm we obtain greatest common divisor of the two original numbers, which has been multiplied by some natural number. Spurious factor has appeared in the answer. We have proven estimation of the worst case of steps and obtained example of this case. Fixation of some endless sequence 𝐾 of natural numbers (each value is greater than 2) allows us to obtain the generalized Sorenson
left shift 𝑘-ary gcd algorithm. There at 𝑖-th step the value of 𝑘𝑖 ∈ 𝐾 is used instead of fixed parameter 𝑘. Both algorithms are completely coincide except this moment.
Continued fractions with rational partial quotients with left shift arise at applying of the generalized Sorenson left shift 𝑘-ary gcd algorithm to the ratio of two natural numbers 𝑎 and 𝑏. We can bind these continued fractions and polynomials of the special form, which called continuants. Numerator and denominator of such continued fractions can be expressed by
continuants. Formulas have been found that allow us to express continuants of the 𝑛-th order as some combination of continuants of a smaller order. Conditions were found at which a sequence of continuants of increasing order is strictly increasing. We also found conditions that allow unambiguous comparison of convergents of rational numbers that had performed by using continued fractions with rational partial quotients.
About the Author
Dmitry Alexandrovich DolgovRussian Federation
References
1. Morier-Genoud, S., Ovsienko, V., 2019. “Farey Boat: Continued Fractions and Triangulations,
2. Modular Group and Polygon Dissections”, Jahresber. Dtsch. Math., vol. 121, pp. 91–136.
3. ¸ Canak¸cı, ˙I., Schiffler, R., 2020. “Snake graphs and continued fractions”, European Journal of Combinatorics, vol. 86.
4. Sorenson, J., 1994. “Two Fast GCD Algorithms”, J. of Algorithms, vol. 16, no. 1, pp. 110-144.
5. Morrison, D., Angel, E., 1991. “Speeding Up Bresenham’s Algorithm”, IEEE Computer Graphics and Applications, vol. 11, no. 06, pp. 16-17.
6. Zhang, Z., 2004. “Finding 𝑐3-strong pseudoprimes” MATHEMATICS OF COMPUTATION,
7. vol. 74, no. 250, pp. 1009-1024.
8. Xiao, L., Xia X. -G., Wang W., 2014. “Multi-Stage Robust Chinese Remainder Theorem”, IEEE
9. Transactions on Signal Processing, vol. 62, no. 18, pp. 4772-4785.
10. Weber, K., 1995. “The Accelerated Integer GCD Algorithm”, ACMTrans.Math. Software, vol.
11. , no. 1, pp. 111-122.
12. Dolgov, D., 2016. “GCD calculation in the search task of pseudoprime and strong pseudoprime numbers”, Lobachevskii J Math, vol. 37, no. 6, pp. 734-739.
13. Dolgov, D. A., 2018. “An extended Jebelean–Weber–Sedjelmaci GCD algorithm (in russian)”,
14. Chebyshevskii Sbornik, vol. 19, no. 2, pp. 421-431.
15. Dolgov, D. A., 2019. “The K-ary gcd algorithm without spurious factors (in russian)”, XVI
16. International Conference “Algebra, number theory and discrete geometry: Modern problems,
17. applications and problems of history” , Tula, pp. 162-165.
18. Karatsuba, A. A., 1983. “Principles of Analytic Number Theory”, Nauka, Moscow.
19. Jebelean, T., 1993. “A generalization of the binary GCD algorithm”, ISSAC, KIEV, pp. 1-5.
20. Stein, J., 1967. “Computational problems associated with Racah algebra”, J. Comp. Phys., vol. 1, no. 3, pp. 397-405.
21. Dolgov, D.A., 2022. “Continuants of continued fractions with rational incomplete quotients (in russian)”, Diskr. Mat, vol. 34, no. 3, pp. 34-51.
22. Straustrup, B., 2013. “The C++ Programming Language”, Addison-Wesley Professional.
23. Bosma, W., Kraaikamp, C., Hommersom, S., Keune, M., Kooloos, C., van Loon, W., Loos,
24. R., Omiljan, E., Popma, G., Venhoek, D., Zwart, M., 2012. “Continued fractions”. URL:
25. https://www.math.ru.nl/ bosma/Students/CF.pdf
26. Muir, T., 1960. “A Treatise on the Theory of Determinants”, Dover Publications, p. 766.
Review
For citations:
Dolgov D.A. On the continued fraction with rational partial quotients. Chebyshevskii Sbornik. 2024;25(2):43-66. (In Russ.) https://doi.org/10.22405/2226-8383-2024-25-2-43-66