dogma
- 35
- 0
Hello out there!
I'm working a problem where I need to find the greatest common divisor and the least common multiple for integer pairs. I then need to express the gcd as a linear combination. I could use a sanity check to make sure I'm on the right track.
I need to find the gcd and lcm of the integer pair: 175 and 35
By visual inspection, I "see" the answers, but working it out…
The gcd: (175,35) = \prod_i p_i^{min(\alpha_i,\beta_i)}
175 = 5^1\cdot35 = 5^1\cdot5^1\cdot7^1 = 5^2\cdot7^1
35 = 5^1\cdot7^1
(175,35) = 5^1\cdot7^1 = 35
The lcm: [175,35] = \prod_i p_i^{max(\alpha_i,\beta_i)}
[175,35] = 5^2\cdot7^1 = 175
So now I need to express the gcd as a linear combination. Is this correct:
ax + by = d where d = (a,b)
175x + 35y = 35
x = 0 and y = 1
\therefore 175\cdot(0) + 35\cdot(1) = 35
Hopefully I'm on the right track, although I can see there being multiple solutions for the linear combination.
Thanks in advance for your help, comments, tips, clues, commentaries...
I'm working a problem where I need to find the greatest common divisor and the least common multiple for integer pairs. I then need to express the gcd as a linear combination. I could use a sanity check to make sure I'm on the right track.
I need to find the gcd and lcm of the integer pair: 175 and 35
By visual inspection, I "see" the answers, but working it out…
The gcd: (175,35) = \prod_i p_i^{min(\alpha_i,\beta_i)}
175 = 5^1\cdot35 = 5^1\cdot5^1\cdot7^1 = 5^2\cdot7^1
35 = 5^1\cdot7^1
(175,35) = 5^1\cdot7^1 = 35
The lcm: [175,35] = \prod_i p_i^{max(\alpha_i,\beta_i)}
[175,35] = 5^2\cdot7^1 = 175
So now I need to express the gcd as a linear combination. Is this correct:
ax + by = d where d = (a,b)
175x + 35y = 35
x = 0 and y = 1
\therefore 175\cdot(0) + 35\cdot(1) = 35
Hopefully I'm on the right track, although I can see there being multiple solutions for the linear combination.
Thanks in advance for your help, comments, tips, clues, commentaries...
