So I was presented with this question in a test. I don’t fully grasp the meaning of it. Could someone please explain this to me? Here is the question
Create an algorithm that find the smallest coefficient of 7 where the remainder of its division to 2, 3, 4, 5, and 6 is 1.
Hint: when you divide this number to 2, 3, 4, 5, 6 respectively the remainder of it should be 1.
And the answer I gave
Create four variables input, newInput, number and count =2
newInput += input
number = newInput
If number % count = 1. Then add one to count and continue. If not then reset count=2 .go back to 2 and loop.
If (count+1) = number. Print number. If not go back to 4
Thanks for helping.