Euclid's Algorithm Homework: Stuck & Need Help

  • Thread starter Thread starter Mattofix
  • Start date Start date
  • Tags Tags
    Algorithm
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
Physics news on Phys.org
Look at 5 and 7. I cleverly observe that 3*5-2*7=1. Now any integer is a multiple of 1, right?
 
So n=(3*n)*5+(-2*n)*7. Doesn't that look like a linear combination of 5 and 7?
 
:)

great - thanks - i have got all the others now.