|
Question 926846: The number im thinking of is between 12 and 32
when i divide it by 5, it leaves a remainder of 1
when i divide it by 4, it leaves a remainder of 2
The number is ?
Can you please write how to calculate this problem? so i can do it in next similar question with a different numbers. Thank youu
Answer by CharlesG2(834) (Show Source):
You can put this solution on YOUR website! The number I'm thinking of is between 12 and 32.
When I divide it by 5, it leaves a remainder of 1
When I divide it by 4, it leaves a remainder of 2
The number is ?
a modulo b or a % b gives remainder of division
a%b is the remainder of a / b, example 5 % 2 = 1
let n be the number we want to find
n % 5 = 1 --> 16, 21, 26, 31 (all numbers that are multiples of 5 between 12 and 32 and adding 1 to each of them, notice these numbers each have a difference of 5)
n % 4 = 2 --> 14, 18, 22, 26, 30 (all numbers that are multiples of 4 between 12 and 32 and adding 2 to each of them, notice these numbers each have a difference of 4)
26 satisfies both requirements
26 % 5 = 1 and 26 % 4 = 2
so 26 is the number you wanted to find
|
|
|
| |