This note came from https://brilliant.org/practice/number-jumping-i/?chapter=gcd-and-lcm and if you don’t understand what the math behind it means, this is the note you’re looking for. I recommend to click the link and finish the quiz before coming back.
Ryan has two numbers; 9 and 14. He can add 9 or subtract 9. He can also do the same with 14. Can he get to any number he wanted with just those two numbers (including negative just for fun)?
This problem is relatively easy, if you know how to solve it. All you need to do is find the G.C.D. (A.KA. Greatest Common Divisor). 9 has factors of 1, 3, and 9. 14 has factors of 1, 2, 7, and 14. The G.C.D. Of 9 and 14 is 1, so:
Yes, Ryan can reach any number he wanted (again, including negative).
Still confused, well here’s a simple math equation to clear up confusion:
(9x3) - (14x2) = 1
The same thing can be done for negative numbers:
(9x-3) + (14x2) = -1
And from there, you can add or subtract -1 to -1 continuously, and you will cover up all the numbers. the opposite is also true with 1.
Now you can use that knowledge to solve my sequel quiz to this note:
P.S.: If I can reach #10 or higher on new quizzes, then I will post a not about Python followed by a quiz about it a few days after. (not the giant snake Apollo slain at least 2 times already) (the coding language). Also, it’s in the new section as well as the number theory section.