In [here], the GCD (Greatest Common Divisor) is given in brief details. The algorithm can be implemented in both recursive and iterative forms. The recursive formula is
The following properties may be used in other solution.
–EOF (The Ultimate Computing & Technology Blog) —
Last Post: Codeforces: A. System Administrator
Next Post: A Faster Exponentiation Algorithm by Squaring (Power Function)