Ok, time for trick number 1.
This is known as Euclid's Algorithm.
The algorithm is normally something you can use to find the GCD or greatest common devisor of two numbers. Maybe some of you have seen it? To do it take 21 and divide by 17, noting the remainder. Then divide 17 by the remainder and get a second remainder. Then divide the first remainder by the second... like this:
21 = 17*1 + 4
17 = 04*4 + 1
04 = 01*4 + 0
Note that I only write the number "4" as "04" and "1" as "01" to try to line up the columns.
Because we are able to start with 21 and 17 and end up with a remainder of 0 only after dividing by 1, this means that the GCD of the two numbers is one, which is obvious if you just look at the two numbers...
Another example: say we started with 66 and 30
66 = 30*2 + 6
30 = 06*5 + 0
here we get a remainder of zero when we divide by 6 in the last line, se the GCD of 30 and 66 is 6.
We could probably see that the GCD of 66 and 30 is 6 without using this method, but it becomes very useful when the numbers start to get bigger...
So this is the first of two tricks that are necessary for solving this sort of problem.
The second trick is a matter of taking the numbers that I have highlighted above and reconstructing the original numbers from them.
I will post this soon.
Does this make sense to anybody? Its kinda hard to explain well on the forum... does anybody have any questions so I can try to clarify?
This is known as Euclid's Algorithm.
The algorithm is normally something you can use to find the GCD or greatest common devisor of two numbers. Maybe some of you have seen it? To do it take 21 and divide by 17, noting the remainder. Then divide 17 by the remainder and get a second remainder. Then divide the first remainder by the second... like this:
21 = 17*1 + 4
17 = 04*4 + 1
04 = 01*4 + 0
Note that I only write the number "4" as "04" and "1" as "01" to try to line up the columns.
Because we are able to start with 21 and 17 and end up with a remainder of 0 only after dividing by 1, this means that the GCD of the two numbers is one, which is obvious if you just look at the two numbers...
Another example: say we started with 66 and 30
66 = 30*2 + 6
30 = 06*5 + 0
here we get a remainder of zero when we divide by 6 in the last line, se the GCD of 30 and 66 is 6.
We could probably see that the GCD of 66 and 30 is 6 without using this method, but it becomes very useful when the numbers start to get bigger...
So this is the first of two tricks that are necessary for solving this sort of problem.
The second trick is a matter of taking the numbers that I have highlighted above and reconstructing the original numbers from them.
I will post this soon.
Does this make sense to anybody? Its kinda hard to explain well on the forum... does anybody have any questions so I can try to clarify?
