34034 =
510 x 66 + 374
510 =
374 X 1 + 136
374 =
136 X 3 + 102
136 =
102 X 1 + 34
102 =
34 X 3.......THUS 34 IS THE HCF OF 34034 AND 510.
Chat with our AI personalities
Using the extended Euclidean algorithm, find the multiplicative inverse of a) 1234 mod 4321
The greatest common factor (GCF), also known as the greatest common divisor (GCD), represents the largest number that divides into each member of a set of numbers. Smaller GCFs can be quickly calculated using the prime factors of each number, but calculating large GCFs the same way is sometimes difficult. An algorithm devised by Euclid, (the ladder) lets you find the GCF of any number without extensive factoring. All you need is the ability to do long division.
Euclid's algorithm is a popular algorithm to compute the GCD of two numbers. Algorithm: Gcd(a,b) = Gcd(b, a mod b), where a>=b and Gcd(a,0) = a Say we want to find the GCD of 72 and 105. 105 mod 72 = 33, so GCD(72,105) = GCD(33,72) 72 mod 33 = 6, so GCD(33,72) = GCD(6,33) 33 mod 6 = 3 so GCD(6,33) = GCD(3,6) 6 mod 3 = 0 so GCD(3,6) = GCD(0,3) = 3. So the GCD of 72 and 105 is 3.
Use the division algorithm. If b = pa + r, then gcd(b,a) = gcd(a,r). Then you can apply the division algorithm again with a = qr + r' and gcd(a,r) = gcd(r, r'). Note that each time the square norm of the remainder gets smaller and smaller, so eventually this process will terminate and you can get the answer. Here, it should be 1.
While Euclid was famed for his development and presentation of geometry to the ancient Greek world, it was Archimedes who made a direct contribution to the discovery of pi.I suggest you find an online summary of Euclid's Elementsand use that as a resource.