gcd(a+1,b) code example Example: gcd algorithm function gcd(a, b) if b = 0 return a else return gcd(b, a mod b)