Class 9 · Mathematics

Questions

1,196 questions

1–5 of 5 matching

850.Compute the following using the improved version of Euclid's algorithm.Ch 11 · The World of AlgorithmsmediumNumerical858.Let m=6m = 6, n=12n = 12.
– min⁡(6,12)=6\min(6, 12) = 6
– Initially set most-recent-common-divisor to 1
– k = 2 divides both 6 and 12. Update: most-recent-common-divisor to 2.
– k = 3 divides both 6 and 12. Update: most-recent-common-divisor to 3.
– k = 4 doesnot divide 6. most-recent-common-divisor remains 3.
– k = 5 doesnot divide 6. most-recent-common-divisor remains 3.
– k = 6 divides both 6 and 12. Update: most-recent-common-divisor to 6.
Scan complete. gcd(6, 12) = 6
Ch 11 · The World of Algorithms
mediumShort answer
859.gcd⁡(99,2)\gcd(99, 2) = gcd⁡(2,1)\gcd(2, 1), carried out by long division: 2)99‾(492)\overline{99}(49, 9898, then 1)2‾(21)\overline{2}(2, 22, 00. The last divisor is the gcd.Ch 11 · The World of AlgorithmseasyNumerical860.gcd⁡(825,375)\gcd(825, 375) = gcd⁡(375,75)\gcd(375, 75), carried out by long division: 375)825‾(2375)\overline{825}(2, 750750, then 75)375‾(575)\overline{375}(5, 375375, 00. The last divisor is the gcd.Ch 11 · The World of AlgorithmseasyNumerical861.Here is another example— gcd⁡(60,16)\gcd(60, 16) = gcd⁡(16,12)\gcd(16, 12) = gcd⁡(12,4)\gcd(12, 4), carried out by long division: 16)60‾(316)\overline{60}(3, 4848; 12)16(112)16(1, 1212; 4)12(34)12(3, 1212, 00.Ch 11 · The World of AlgorithmsmediumNumerical