@article{oai:soar-ir.repo.nii.ac.jp:02001207, author = {Okazaki, Hiroyuki and Nagao, Koh-ichi and Futa, Yuichi}, issue = {1}, journal = {FORMALIZED MATHEMATICS}, month = {May}, note = {In this article we formalize in Mizar the maximum number of steps taken by some number theoretical algorithms, “right–to–left binary algorithm” for modular exponentiation and “Euclidean algorithm” For any natural numbers a, b, n, “right–to–left binary algorithm” can calculate the natural number, see (Def. 2), AlgoBPow(a, n,m) := ab mod n and for any integers a, b, “Euclidean algorithm” can calculate the non negative integer gcd(a, b). W have not formalized computational complexity of algorithms yet, though we had already formalize the “Euclidean algorithm” in. For “right-to-left binary algorithm”, we formalize the theorem, which says that the required number of the modular squares and modular products in this algorithms are 1+blog2 nc and for “Euclidean algorithm”, we formalize the Lam´e's theorem, which says the required number of the divisions in this algorithm is at most 5 log10 min(|a|, |b|). Our aim is to support the implementation of number theoretic tools and evaluating computational complexities of algorithms to prove the security of cryptographic systems., Article, FORMALIZED MATHEMATICS 27(1) : 87-91(2019)}, pages = {87--91}, title = {Maximum Number of Steps Taken by Modular Exponentiation and Euclidean Algorithm}, volume = {27}, year = {2019} }