Content deleted Content added
No edit summary |
No edit summary |
||
Line 19:
|formula=floor(r{{{n}}}/r{{#expr:{{{n}}}+1}})
|id=q{{#expr:{{{n}}}+2}}|type=plain
}}
|formula=r{{{n}}}%r{{#expr:{{{n}}}+1}}
|id=r{{#expr:{{{n}}}+2}}
Line 27:
|formula=not(r{{#expr:{{{n}}}+2}})
|starthidden=1
|1=<br>Since {{math|1=r<sub>{{{n}}}</sub> = 0}} the algorithm is finished. Thus '''{{math|1=GCD( {{calculator|formula=x|type=plain}}, {{calculator|formula=y|type=plain}} ) = {{calculator|formula=ifequal(r{{#expr:{{{n}}}+1}},0,r0,r{{#expr:{{{n}}}+1}})|type=plain}}}}'''.
}}
}}{{calculator
|