Revision as of 20:43, 6 September 2008 by Jmagner (Talk)

Show that $ 5*n + 3 $ and $ 7*n + 4 $ are relatively prime.

$ 7*n + 4 = 5*n + 3 + 2*n + 1 $

$ 5*n + 3 = 2*(2*n + 1) + n + 1 $

$ 2*n + 1 = 1*(n + 1) + n $

$ n + 1 = 1*n + 1 $


After constant long division we get to the base equation where there is still a remainder of 1. Therefore $ 5*n + 3 $ and $ 7*n + 4 $ are relatively prime.


Even easier would be to use the Euclidean Algorithm

$ gcd(5*n + 3, 7*n + 4) = gcd(5*n + 3, 2*n + 1) $ $ = gcd(3*n + 2, 2*n + 1) $ $ = gcd(n + 1, 2*n + 1) $ $ = gcd(n + 1, n) $ $ = gcd(1, n) $ $ = 1 $

Since the GCD of the two expressions is one for all n, they are relatively prime.

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang