On the use of the Euclid algorithm for finding the the greatest common divisor of two numbers

Abstract

Authors

T. Popoviciu

Tiberiu Popoviciu

Keywords

Euclid’s algorithm; greatest common divisor; number of divisions; Fibonacci sequence; numeration base

Paper coordinates

T. Popoviciu, Asupra aplicării algoritmului lui Euclid pentru aflarea c.m.m.d.c. a două numere, Studii și cercetări științifice (Cluj), 4 (1953) nos. 1-2, pp. 59-63 (in Romanian).

PDF

About this paper

Journal

Studii si Cercetari Stiintifice (Cluj)

Publisher Name

Editura Academiei Republicii Populare Române

Print ISSN
Online ISSN

google scholar link

??

Paper (preprint) in HTML form

scm,+1953-Popoviciu2 html,body { width: 100%; height: 100%; } *, *::before,*::after { box-sizing: border-box; } body { margin: 0; color: #1E2029; font-size: 14px; line-height: normal; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5em; color: rgba(0, 0, 0, 0.85); font-weight: 500; } p { margin-top: 0; margin-bottom: 1em; } ol, ul, dl { margin-top: 0; margin-bottom: 1em; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 500; } dd { margin-bottom: 0.5em; margin-left: 0; } blockquote { margin: 0 0 1em; } dfn { font-style: italic; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } a { color: #0B93ff; text-decoration: none; background-color: transparent; outline: none; cursor: pointer; transition: color 0.3s; } a:hover { color: #33aaff; } a:active { color: #0070d9; } a:active, a:hover { text-decoration: none; outline: 0; } a[disabled] { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; pointer-events: none; } pre, code, kbd, samp { font-size: 1em; } pre { margin-top: 0; margin-bottom: 1em; overflow: auto; } figure { margin: 0 0 1em; } img { vertical-align: middle; border-style: none; } svg:not(:root) { overflow: hidden; } table { border-collapse: collapse; } caption { padding-top: 0.75em; padding-bottom: 0.3em; color: rgba(0, 0, 0, 0.45); text-align: left; caption-side: bottom; } th { text-align: inherit; } mjx-container[jax="SVG"] { direction: ltr; } mjx-container[jax="SVG"] > svg { overflow: visible; min-height: 1px; min-width: 1px; } mjx-container[jax="SVG"] > svg a { fill: blue; stroke: blue; } mjx-assistive-mml { position: absolute !important; top: 0px; left: 0px; clip: rect(1px, 1px, 1px, 1px); padding: 1px 0px 0px 0px !important; border: 0px !important; display: block !important; width: auto !important; overflow: hidden !important; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } mjx-assistive-mml[display="block"] { width: 100% !important; } mjx-container[jax="SVG"][display="true"] { display: block; text-align: center; margin: 1em 0; } mjx-container[jax="SVG"][display="true"][width="full"] { display: flex; } mjx-container[jax="SVG"][justify="left"] { text-align: left; } mjx-container[jax="SVG"][justify="right"] { text-align: right; } g[data-mml-node="merror"] > g { fill: red; stroke: red; } g[data-mml-node="merror"] > rect[data-background] { fill: yellow; stroke: none; } g[data-mml-node="mtable"] > line[data-line], svg[data-table] > g > line[data-line] { stroke-width: 70px; fill: none; } g[data-mml-node="mtable"] > rect[data-frame], svg[data-table] > g > rect[data-frame] { stroke-width: 70px; fill: none; } g[data-mml-node="mtable"] > .mjx-dashed, svg[data-table] > g > .mjx-dashed { stroke-dasharray: 140; } g[data-mml-node="mtable"] > .mjx-dotted, svg[data-table] > g > .mjx-dotted { stroke-linecap: round; stroke-dasharray: 0,140; } g[data-mml-node="mtable"] > g > svg { overflow: visible; } [jax="SVG"] mjx-tool { display: inline-block; position: relative; width: 0; height: 0; } [jax="SVG"] mjx-tool > mjx-tip { position: absolute; top: 0; left: 0; } mjx-tool > mjx-tip { display: inline-block; padding: .2em; border: 1px solid #888; font-size: 70%; background-color: #F8F8F8; color: black; box-shadow: 2px 2px 5px #AAAAAA; } g[data-mml-node="maction"][data-toggle] { cursor: pointer; } mjx-status { display: block; position: fixed; left: 1em; bottom: 1em; min-width: 25%; padding: .2em .4em; border: 1px solid #888; font-size: 90%; background-color: #F8F8F8; color: black; } foreignObject[data-mjx-xml] { font-family: initial; line-height: normal; overflow: visible; } mjx-container[jax="SVG"] path[data-c], mjx-container[jax="SVG"] use[data-c] { stroke-width: 3; } #setText > div { justify-content: inherit; margin-top: 0; margin-bottom: 1em; } #setText div:last-child { margin-bottom: 0 !important; } #setText > br, #preview-content br { line-height: 1.2; } #preview-content > div { margin-top: 0; margin-bottom: 1em; } .proof > div, .theorem > div { margin-top: 1rem; } #preview-content table { margin-bottom: 1em; } #setText table { margin-bottom: 1em; } #preview-content .sub-table table, #setText .sub-table table { margin-bottom: 0; } mjx-container { text-indent: 0; overflow-y: hidden; overflow-x: auto; padding-top: 1px; padding-bottom: 1px; } .math-inline mjx-container { display: inline-block !important; page-break-inside: avoid; max-width: 100%; padding: 0; line-height: 0; } .math-inline[data-overflow="visible"] mjx-container { overflow: visible; } .math-inline mjx-container mjx-assistive-mml { max-width: 100%; } .math-block { align-items: center; page-break-after: auto; page-break-inside: avoid; margin: 0; display: block; /* mjx-container has block */ } .math-inline { display: inline-flex; /* mjx-container has inline-block. To prevent displacement during use overflow-x: auto;*/ max-width: 100%; } .math-block[data-width="full"] { overflow-x: auto; display: flex; /* mjx-container has flex */ } svg .math-inline { display: initial; max-width: initial; } svg .math-inline mjx-container { max-width: initial; } svg mjx-container { overflow: visible; padding: 0; } svg math-block[data-width="full"] { overflow: visible; } .math-block,.math-inline { --mmd-highlight-color: rgba(0, 147, 255, 0.25); --mmd-highlight-text-color: #1e2029; } .math-block[data-highlight-color] mjx-container[jax="SVG"] > svg { background-color: var(--mmd-highlight-color); } .math-block[data-highlight-text-color] mjx-container[jax="SVG"] > svg { color: var(--mmd-highlight-text-color); } .math-inline[data-highlight-color] mjx-container[jax="SVG"] { background-color: var(--mmd-highlight-color); } .math-inline[data-highlight-text-color] mjx-container[jax="SVG"] { color: var(--mmd-highlight-text-color); } .math-block p { flex-shrink: 1; } .math-block mjx-container { margin: 0 !important; } .math-error { background-color: yellow; color: red; } #preview-content img, #setText img { max-width: 100%; } #preview-content blockquote, #setText blockquote { page-break-inside: avoid; color: #666; margin: 0 0 1em 0; padding-left: 3em; border-left: .5em solid #eee; } #preview-content pre, #setText pre { border: none; padding: 0; overflow: auto; font-size: 85%; line-height: 1.45; border-radius: 6px; box-sizing: border-box; background: #f8f8fa; } #preview-content pre code, #setText pre code{ padding: 1rem; display: block; overflow-x: auto; line-height: 24px; } .empty { text-align: center; font-size: 18px; padding: 50px 0 !important; } #setText table, #preview-content table { display: table; overflow: auto; max-width: 100%; border-collapse: collapse; page-break-inside: avoid; } #setText table th, #preview-content table th { text-align: center; font-weight: bold; } #setText table td, #preview-content table td, #setText table th, #preview-content table th { border: 1px solid #dfe2e5; padding: 6px 13px; } #setText table tr, #preview-content table tr { background-color: #fff; border-top: 1px solid #c6cbd1; } #setText table tr:nth-child(2n), #preview-content table tr:nth-child(2n) { background-color: #f6f8fa; } #preview-content .main-title, #setText .main-title { text-align: center; line-height: 1.2; margin: 0 auto 1em auto; } #preview-content .author, #setText .author { text-align: center; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; } #preview-content .author p, #setText .author p { min-width: 30%; max-width: 50%; padding: 0 7px; } #preview-content .author > p > span, #setText .author > p > span { display: block; text-align: center; } #preview-content .section-title, #setText .section-title { margin-top: 1.5em; } #preview-content .abstract, #setText .abstract { text-align: justify; margin-bottom: 1em; } #preview-content .abstract p, #setText .abstract p { margin-bottom: 0; } @media print { #preview { font-size: 10pt!important; } svg { shape-rendering: crispEdges; } .math-block svg, math-inline svg { margin-top: 1px; } #preview-content img, #setText img { display: block; } #preview-content .figure_img img, #setText .figure_img img { display: inline; } .preview-right { word-break: break-word; } #preview-content h1, #setText h1 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h1::after, #setText h1::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } #preview-content h2, #setText h2 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h2::after, #setText h2::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } #preview-content h3, #setText h3 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h3::after, #setText h3::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } #preview-content h4, #setText h4 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h4::after, #setText h4::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } #preview-content h5, #setText h5 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h5::after, #setText h5::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } #preview-content h6, #setText h6 { page-break-inside: avoid; position: relative; border: 2px solid transparent; } #preview-content h6::after, #setText h6::after { content: ""; display: block; height: 100px; margin-bottom: -100px; position: relative; } } #preview-content sup, #setText sup { top: -.5em; position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } #preview-content .text-url, #setText .text-url { color: #0B93ff; cursor: text; pointer-events: none; } #preview-content .text-url a:hover, #setText .text-url a:hover { color: #0B93ff; } mark { background-color: #feffe6; } span[data-underline-type] mark { background: inherit; background-color: #feffe6; padding-top: 0; padding-bottom: 0; } *[data-has-dotfill] { position: relative; overflow: hidden; } *[data-has-dotfill] .dotfill::after { position: absolute; padding-left: .25ch; content: " . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . " ". . . . . . . . . . . . . . . . . . . . . . . "; text-align: right; } .smiles { text-align: center; } div.svg-container, #setText > div.svg-container { display: flex; justify-content: center; } #preview-content code, #setText code { font-family: Inconsolata; font-size: inherit; display: initial; background: #f8f8fa; } #preview-content .mmd-highlight code, #setText .mmd-highlight code, #preview-content pre.mmd-highlight code, #setText pre.mmd-highlight code { background-color: transparent; } #preview-content pre code, #setText pre code { font-family: 'DM Mono', Inconsolata, monospace; color: #333; font-size: 15px; } .hljs-comment, .hljs-quote { color: #998; font-style: italic; } .hljs-command { color: #005cc5; } .hljs-keyword, .hljs-selector-tag, .hljs-subst { color: #d73a49; font-weight: bold; } .hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-tag .hljs-attr { color: #005cc5; } .hljs-string, .hljs-doctag { color: #24292e; } .hljs-title, .hljs-section, .hljs-selector-id { color: #6f42c1; font-weight: bold; } .hljs-subst { font-weight: normal; } .hljs-type, .hljs-class .hljs-title { color: #458; font-weight: bold; } .hljs-tag, .hljs-name, .hljs-attribute { color: #000080; font-weight: normal; } .hljs-regexp, .hljs-link { color: #009926; } .hljs-symbol, .hljs-bullet { color: #990073; } .hljs-built_in, .hljs-builtin-name { color: #24292e; } .hljs-meta { color: #999; font-weight: bold; } .hljs-meta-keyword { color: #d73a49; } .hljs-meta-string { color: #032f62; } .hljs-deletion { background: #fdd; } .hljs-addition { background: #dfd; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; } .table_tabular table th, .table_tabular table th { border: none !important; padding: 6px 13px; } .tabular tr, .tabular tr { border-top: none !important; border-bottom: none !important; } .tabular td, .tabular td { border-style: none !important; background-color: #fff; border-color: #000 !important; word-break: keep-all; padding: 0.1em 0.5em !important; } .tabular { display: inline-table !important; height: fit-content; } .tabular td > p { margin-bottom: 0; margin-top: 0; } .tabular td._empty { height: 1.3em; } .tabular td .f { opacity: 0; } html[data-theme="dark"] .tabular tr, html[data-theme="dark"] .tabular td { background-color: #202226; border-color: #fff !important; } .table_tabular { overflow-x: auto; padding: 0 2px 0.5em 2px; } .figure_img { margin-bottom: 0.5em; overflow-x: auto; } ol.enumerate, ul.itemize { padding-inline-start: 40px; } /* It's commented because counter not supporting to change value ol.enumerate.lower-alpha { counter-reset: item ; list-style-type: none !important; } .enumerate.lower-alpha > li { position: relative; } .enumerate.lower-alpha > li:before { content: "("counter(item, lower-alpha)")"; counter-increment: item; position: absolute; left: -47px; width: 47px; display: flex; justify-content: flex-end; padding-right: 7px; flex-wrap: nowrap; word-break: keep-all; } */ .itemize > li { position: relative; } .itemize > li > span.li_level, .li_enumerate.not_number > span.li_level { position: absolute; right: 100%; white-space: nowrap; width: max-content;; display: flex; justify-content: flex-end; padding-right: 10px; box-sizing: border-box; } .li_enumerate.not_number { position: relative; display: inline-block; list-style-type: none; } #preview { font-family: 'CMU Serif', 'Georgia', Helvetica, Arial, sans-serif; font-size: 17px; visibility: visible; word-break: break-word; padding: 2.5em; max-width: 800px; margin: auto; box-sizing: content-box; } #preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview strong { font-family: 'CMU Serif Bold', 'Georgia', Helvetica, Arial, sans-serif; } #preview i, #preview em { font-family: 'CMU Serif Italic', 'Georgia', Helvetica, Arial, sans-serif; } .mmd-menu { max-width: 320px; position: absolute; background-color: white; color: black; width: auto; padding: 5px 0px; border: 1px solid #E5E6EB; margin: 0; cursor: default; font: menu; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -khtml-border-radius: 5px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; } .mmd-menu:focus { outline: none; } .mmd-menu.mmd-menu-sm { max-width: 100vw; padding-bottom: 34px; border-radius: 0; -webkit-border-radius: 0; -moz-border-radius: 0; -khtml-border-radius: 0; } .mmd-menu-item-icon { color: #1e2029; margin-left: auto; align-items: center; display: flex; flex-shrink: 0; display: none; } .mmd-menu-item { padding-bottom: 8px; padding-top: 8px; padding-left: 1.25rem; padding-right: 1.25rem; display: flex; background: transparent; height: 52px; max-height: 52px; } .mmd-menu-item:focus { outline: none; } .mmd-menu-item.active { background-color: #e1e0e5; } .mmd-menu-item.active .mmd-menu-item-icon { display: flex; } .mmd-menu-item-container { overflow: hidden; } .mmd-menu-item-title { color: #1e2029; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 14px; line-height: 20px; } .mmd-menu-item-value { color: #7d829c; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; line-height: 16px; } html[data-theme="dark"] .mmd-menu-item-title { color: #ebefe7; } html[data-theme="dark"] .mmd-menu-item.active .mmd-menu-item-title { color: #1e2029; } html[data-theme="dark"] .mmd-menu { background-color: #33363a; } .mmd-context-menu-overlay{ background: rgba(0, 0, 0, 0.56); } .ClipboardButton { padding: 0; margin: 0.5rem; display: inline-block; cursor: pointer; color: rgb(36, 41, 47); background: rgb(246, 248, 250); border-radius: 6px; border: 1px solid rgba(31, 35, 40, 0.15); box-shadow: rgba(31, 35, 40, 0.04) 0 1px 0 0, rgba(255, 255, 255, 0.25) 0 1px 0 0 inset; position: relative; } .ClipboardButton:hover { background-color: rgb(243, 244, 246); border-color: rgba(31, 35, 40, 0.15); transition-duration: .1s; } td .mmd-clipboard-copy-container { line-height: 0; } td .ClipboardButton { margin: 1px; line-height: 0; } td .ClipboardButton .mmd-clipboard-icon { margin: 1px !important; transform: scale(0.6); } .mmd-clipboard-icon { fill: currentColor; vertical-align: text-bottom; } .mmd-clipboard-copy-icon { color: rgb(101, 109, 118); } .mmd-clipboard-check-icon { color: rgb(26, 127, 55); } .mmd-tooltipped-no-delay:hover::before, .mmd-tooltipped-no-delay:hover::after { animation-delay: 0s; } .mmd-tooltipped:hover::before, .mmd-tooltipped:hover::after { display: inline-block; text-decoration: none; animation-name: tooltip-appear; animation-duration: .1s; animation-fill-mode: forwards; animation-timing-function: ease-in; animation-delay: .4s; } .mmd-tooltipped-w::before { top: 50%; bottom: 50%; left: -7px; margin-top: -6px; border-left-color: rgb(36, 41, 47); } .mmd-tooltipped::before { position: absolute; z-index: 1000001; display: none; width: 0; height: 0; color: rgb(36, 41, 47); pointer-events: none; content: ""; border: 6px solid transparent; opacity: 0; } .mmd-tooltipped-w::after { right: 100%; bottom: 50%; margin-right: 6px; transform: translateY(50%); } .mmd-tooltipped::after { position: absolute; z-index: 1000000; display: none; padding: 0.5em 0.75em; font: normal normal 11px/1.5 'CMU Serif', 'Georgia', Helvetica, Arial, sans-serif; -webkit-font-smoothing: subpixel-antialiased; color: rgb(255, 255, 255); text-align: center; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-wrap: break-word; white-space: pre; pointer-events: none; content: attr(aria-label); background: rgb(36, 41, 47); border-radius: 6px; opacity: 0; }
Original text
Rate this translation
Your feedback will be used to help improve Google Translate

ON THE APPLICATION OF EUCLID'S ALGORITHM TO FIND THE GCD OF TWO NUMBERS

TIBERIU POPOVICIUCorresponding member of the RPR Academy

Communication presented at the meeting of September 24, 1952 of the Cluj Branch of the RPR Academy
    • Whether a , b a , b a,ba, ba,b, two natural numbers. To find their gcd, we apply Euclid's algorithm, which consists of performing successive divisions
b = q a + r , a = q 1 r + r 1 , r = q 2 r 1 + r 2 , (1) ⋯ ⋯ ⋯ ⋯ ⋯ r n − 2 = q n r n − 1 + r n , r n − 1 = q n + 1 r n . b = q a + r , a = q 1 r + r 1 , r = q 2 r 1 + r 2 , (1) ⋯ ⋯ ⋯ ⋯ ⋯ r n − 2 = q n r n − 1 + r n , r n − 1 = q n + 1 r n . {:[b=qa+r","],[a=q_(1)r+r_(1)","],[r=q_(2)r_(1)+r_(2)","],[(1) cdots cdots cdots cdots cdots],[r_(n-2)=q_(n)r_(n-1)+r_(n)","],[r_(n-1)=q_(n+1)r_(n).]:}\begin{align*} & b=q a+r, \\ & a=q_{1} r+r_{1}, \\ & r=q_{2} r_{1}+r_{2}, \\ & \cdots \cdots \cdots \cdots \cdots \tag{1}\\ & r_{n-2}=q_{n} r_{n-1}+r_{n}, \\ & r_{n-1}=q_{n+1} r_{n} . \end{align*}b=qa+r,a=q1r+r1,r=q2r1+r2,(1)⋯⋯⋯⋯⋯rn−2=qnrn−1+rn,rn−1=qn+1rn.
We can assume b > a b > a b > ab>ab>aThe floors q , q 1 , … , q n + 1 q , q 1 , … , q n + 1 q,q_(1),dots,q_(n+1)q, q_{1}, \ldots, q_{n+1}q,q1,…,qn+1are positive integers, and the remainders r , r 1 , … … , r n r , r 1 , … … , r n r,r_(1),dots dots,r_(n)r, r_{1}, \ldots \ldots, r_{n}r,r1,……,rnare also integers and positive and check inequalities
a > r > r 1 > … > r n > 0 a > r > r 1 > … > r n > 0 a > r > r_(1) > dots > r_(n) > 0a>r>r_{1}>\ldots>r_{n}>0a>r>r1>…>rn>0
To find cmmdc r n r n r_(n)r_{n}rnof numbers a , b a , b a,ba, ba,b, must, according to table (1), be carried out n + 2 n + 2 n+2n+2n+2division 1 1 ^(1){ }^{1}1). The number of divisions can be interestingly delimited according to the smallest of the numbers a a aaaand b b bbb(i.e. a a aaa). We have in this regard the following well-known result: [1].
THEOREM 1. - The number of divisions that must be performed to find the gcd of two positive integers is at most equal to 5 times the number of digits of the smallest of these numbers.
A simple proof of this theorem was given by PL C eb â ş ev [2]. In the following we will show that C eb âşev's method allows us to specify Theorem 1 a little.
2. - We have q i ≧ 1 , i = 1 , 2 , … , n + 1 q i ≧ 1 , i = 1 , 2 , … , n + 1 q_(i) >= 1,i=1,2,dots,n+1q_{i} \geqq 1, i=1,2, \ldots, n+1qi≧1,i=1,2,…,n+1and, taking into account r n − 1 ≥ r n r n − 1 ≥ r n r_(n-1) >= r_(n)r_{n-1} \geq r_{n}rn−1≥rnwe even deduce q n + 1 ≧ 2 q n + 1 ≧ 2 q_(n+1) >= 2q_{n+1} \geqq 2qn+1≧2. Formulas (1) then give us
(2)
a ≧ r + r 1 r ≧ r 1 + r 2 r 1 ≧ r 2 + r 3 ⋯ ⋯ ⋯ ⋯ r n − 2 ≧ r n − i + r n r n − i ≧ 2 r n a ≧ r + r 1 r ≧ r 1 + r 2 r 1 ≧ r 2 + r 3 ⋯ ⋯ ⋯ ⋯ r n − 2 ≧ r n − i + r n r n − i ≧ 2 r n {:[a >= r+r_(1)],[r >= r_(1)+r_(2)],[r_(1) >= r_(2)+r_(3)],[ cdots cdots cdots cdots],[r_(n-2) >= r_(n-i)+r_(n)],[r_(n-i) >= 2r_(n)]:}\begin{aligned} & a \geqq r+r_{1} \\ & r \geqq r_{1}+r_{2} \\ & r_{1} \geqq r_{2}+r_{3} \\ & \cdots \cdots \cdots \cdots \\ & r_{n-2} \geqq r_{n-i}+r_{n} \\ & r_{n-i} \geqq 2 r_{n} \end{aligned}a≧r+r1r≧r1+r2r1≧r2+r3⋯⋯⋯⋯rn−2≧rn−i+rnrn−i≧2rn
Taking into account (5) and (7) we therefore deduce
a > 11 n + 1 5 a > 11 n + 1 5 a > 11^((n+1)/(5))a>11^{\frac{n+1}{5}}a>11n+15
If k k kkkis the number of digits of written in the base 11 number system, we have a < 11 k a < 11 k a < 11^(k)a<11^{k}a<11k, so n + 1 < 5 k n + 1 < 5 k n+1 < 5kn+1<5 kn+1<5k, that is n + 2 ≦ 5 k n + 2 ≦ 5 k n+2 <= 5kn+2 \leqq 5 kn+2≦5kWe can, however, state the following property:
THEOREM 2. - The number of divisions that must be performed to find the common denominator of two positive integers is at most equal to 5 times the number of digits of the smallest of these numbers, written in the base 11 number system.
3. - The previous result can be generalized a little further.
Whether l l llla natural number and calculate on [ α l α l alpha^(l)\alpha^{l}al], that is, the whole part of α l , α α l , α alpha l,alpha\alpha l, \alphaal,abeing the positive root of equation (6). It is easily proven, by complete induction, that
α l = u l − 1 α + u l − 2 α l = u l − 1 α + u l − 2 alpha^(l)=u_(l-1)alpha+u_(l-2)\alpha^{l}=u_{l-1} \alpha+u_{l-2}al=inl−1a+inl−2
from where
(9) [ α l ] = [ u l − 1 α ] + u l − 2 . (9) α l = u l − 1 α + u l − 2 . {:(9)[alpha^(l)]=[u_(l-1)alpha]+u_(l-2).:}\begin{equation*} \left[\alpha^{l}\right]=\left[u_{l-1} \alpha\right]+u_{l-2} . \tag{9} \end{equation*}(9)[al]=[inl−1a]+inl−2.
We now have
LEM 2. - If α is the positive root of equation (6) and u n u n u_(n)u_{n}innterms of the series (3), we have
(10) [ u n α ] = u n + 1 − 1 − ( − 1 ) n 2 , n = 0 , 1 , … (10) u n α = u n + 1 − 1 − ( − 1 ) n 2 , n = 0 , 1 , … {:(10)[u_(n)alpha]=u_(n+1)-(1-(-1)^(n))/(2)","quad n=0","1","dots:}\begin{equation*} \left[u_{n} \alpha\right]=u_{n+1}-\frac{1-(-1)^{n}}{2}, \quad n=0,1, \ldots \tag{10} \end{equation*}(10)[inna]=inn+1−1−(−1)n2,n=0,1,…
(6)
1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , … … 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , … … 1,1,2,3,5,8,13,21,dots dots1,1,2,3,5,8,13,21, \ldots \ldots1,1,2,3,5,8,13,21,……
Let us now consider the sequence of numbers
(3)
where the first term is equal to the sum of the two preceding terms. The sequence (3) is therefore defined by the recurrence relation.
(4)
u o = u 1 = 1 , u m = u m − 1 + u m − 2 , m i ′ = 2 , 3 , … u o = u 1 = 1 , u m = u m − 1 + u m − 2 , m i ′ = 2 , 3 , … u_(o)=u_(1)=1,quadu_(m)=u_(m-1)+u_(m-2),quadm_(i)^(')=2,3,dotsu_{o}=u_{1}=1, \quad u_{m}=u_{m-1}+u_{m-2}, \quad m_{i}^{\prime}=2,3, \ldotsinthe=in1=1,inm=inm−1+inm−2,mi′=2,3,…
Taking into account (4) and eliminating r , r 1 , … , r n − 1 r , r 1 , … , r n − 1 r,r_(1),dots,r_(n-1)r, r_{1}, \ldots, r_{n-1}r,r1,…,rn−1from inequalities (2), we deduce a ≧ u n + 2 i n a ≧ u n + 2 i n a >= u_(n+2)i_(n)a \geqq u_{n+2} i_{n}a≧inn+2inso
(5)
a ≧ u n + 2 . a ≧ u n + 2 . a >= u_(n+2).a \geqq u_{n+2} .a≧inn+2.
This inequality delimits the n n nnndepending on a a aaa.
We now have the following
LEMMA 1. - If a is the positive root of the equation ( α = 1 + 5 2 ) α = 1 + 5 2 (alpha=(1+sqrt5)/(2))\left(\alpha=\frac{1+\sqrt{5}}{2}\right)(a=1+52)
HAVE
x 2 − x − 1 = 0 x 2 − x − 1 = 0 x^(2)-x-1=0x^{2}-x-1=0x2−x−1=0
(7)
u m ≧ α m − 1 , m = 0 , 1 , … u m ≧ α m − 1 , m = 0 , 1 , … u_(m) >= alpha^(m-1),quad m=0,1,dotsu_{m} \geqq \alpha^{m-1}, \quad m=0,1, \ldotsinm≧am−1,m=0,1,…
The proof is easily done by complete induction, taking into account (4).
It is easy to verify that we have
(8)
α > 8 5 . α > 8 5 . alpha > (8)/(5).\alpha>\frac{8}{5} .a>85.
Taking into account equation (6) we deduce
and from (8) it follows that
α 5 = α 4 + α 3 = α 3 ( α + 1 ) = α ( α + 1 ) 2 = α ( 3 α + 2 ) = 5 α + 3 α 5 = α 4 + α 3 = α 3 ( α + 1 ) = α ( α + 1 ) 2 = α ( 3 α + 2 ) = 5 α + 3 alpha^(5)=alpha^(4)+alpha^(3)=alpha^(3)(alpha+1)=alpha(alpha+1)^(2)=alpha(3alpha+2)=5alpha+3\alpha^{5}=\alpha^{4}+\alpha^{3}=\alpha^{3}(\alpha+1)=\alpha(\alpha+1)^{2}=\alpha(3 \alpha+2)=5 \alpha+3a5=a4+a3=a3(a+1)=a(a+1)2=a(3a+2)=5a+3
α 5 > 5 ⋅ 8 5 + 3 = 11 α 5 > 5 ⋅ 8 5 + 3 = 11 alpha^(5) > 5*(8)/(5)+3=11\alpha^{5}>5 \cdot \frac{8}{5}+3=11a5>5⋅85+3=11
THEOREM 3. - The number of divisions that must be performed to find the gcc of two positive integers is at most equal to l times the number of digits of the smallest of these numbers written in a number system with a base at most equal to the number g g ggg, that the formula (11).
In this statement, we also took into account the fact that the number of digits of a number decreases when the base in which this number is written increases.
For a l l lllgiven the base of numeration that gives us the best limitation, according to the previous method, is precisely g g gggFor l = 5 l = 5 l=5l=5l=5is found g = 11 g = 11 g=11g=11g=11For the first 15 values &ZeroWidthSpace;&ZeroWidthSpace;of l ( ≧ 2 ) l ( ≧ 2 ) l( >= 2)l(\geqq 2)l(≧2), the base g g gggthe most advantageous is given in the table
l l lll g g ggg l l lll g g ggg l l lll g g ggg
2 2 7 29 12 321
3 4 8 46 13 521
4 6 9 76 14 842
5 11 10 122 15 1364
6 17 11 199 16 2205
l g l g l g 2 2 7 29 12 321 3 4 8 46 13 521 4 6 9 76 14 842 5 11 10 122 15 1364 6 17 11 199 16 2205| $l$ | $g$ | $l$ | $g$ | $l$ | $g$ | | ---: | ---: | ---: | ---: | ---: | ---: | | 2 | 2 | 7 | 29 | 12 | 321 | | 3 | 4 | 8 | 46 | 13 | 521 | | 4 | 6 | 9 | 76 | 14 | 842 | | 5 | 11 | 10 | 122 | 15 | 1364 | | 6 | 17 | 11 | 199 | 16 | 2205 |
Faculty of Mathematics and Physics of the "V. Babeș" University of Chuj

BIBLIOGRAPHY

  1. IM Vinogradov, Osnovî teorii cisel, Moskva-Leningrad, 1949, pag. 22.
  2. D. Seliwanoff, Textbook of Differential Calculus, 1904, pp. 91-92.

SUMMARY

On the application of Euclidean algorithm to find the greatest common divisor of two numbers

tiveriu ps covic

A little catch-up method by P. L. Chebashev for finding the pure divisions necessary to determine the greatest common divisor of two natural numbers a , b ( a < 1 ) a , b ( a < 1 ) a,b(a < 1)a, b(a<1)a,b(a<1), we note that in the classical expression in relation to the short a a aaa, which must be taken, the base 10 of the numerical system can be replaced by 11. Considering a slightly more general problem, we find that base 11 is in some sense the most intuitive.

SUMMARY.

On determining the greatest common divisor (GCD) of two numbers using Euclid's algorithm.

by
TIBERIU POPOVICIU

By slightly expanding on PL Cebàşev's method for determining the number of divisions needed to obtain the greatest common divisor (GCD) of two natural numbers a a aaa, b ( a < b ) b ( a < b ) b(a < b)b(a<b)b(a<b)We note that in the well-known statement, relating to the multiple of a that we must take, the base 10 of the number system can be replaced by 11. By examining a slightly more general problem, we find that the base 11, in a certain sense, is the best.

  1. 1 1 ^(1){ }^{1}1) His division r n − 1 r n − 1 r_(n-1)r_{n-1}rn−1by r n r n r_(n)r_{n}rncan be avoided if its divisibility r n − 1 r n − 1 r_(n-1)r_{n-1}rn−1by r n r n r_(n)r_{n}rnis immediately recognized in another way. This always happens when = 1 = 1 =1=1=1.
1953

Related Posts