pyfgcr
- 22
- 0
I wonder how to find linear combination of 2 numbers, that is: ax+by=t, with t=m*GCD(a,b), and m,a,b \in Z. Find x,y.
The discussion focuses on finding the linear combination of two integers, expressed as ax + by = t, where t equals m multiplied by the GCD of a and b. The Euclidean algorithm is essential for determining the GCD, as demonstrated with the example of gcd(24, 15) resulting in 3. The process involves applying the algorithm to find the GCD and then backtracking to express the GCD as a linear combination of the two numbers, ultimately yielding the coefficients x and y.
PREREQUISITESMathematicians, students studying number theory, and anyone interested in algorithms related to integers and their properties.
pyfgcr said:I wonder how to find linear combination of 2 numbers, that is: ax+by=t, with t=m*GCD(a,b), and m,a,b \in Z. Find x,y.