yezz
When n is divided by 5 the remainder is 2. When n is divided by 7 the remainder is 1. If n is less than 800 , how many values of n are possible?
A. 22
B. 23
C. 24
D. 25
E. 26
First of all it should be mentioned in the stem that \(n\) is a positive integer:
every GMAT divisibility question will tell you in advance that any unknowns represent positive integers.Given:
\(n=5p+2\), so \(n\) can be: 2, 7, 12, 17,
22, 27, ...
\(n=7q+1\), so \(n\) can be: 1, 8, 15,
22, 29, ...
General formula for \(n\) based on above two statements will be: \(n=35k+22\) (the divisor should be the least common multiple of above two divisors 5 and 7, so 35 and the remainder should be the first common integer in above two patterns, hence 22).
Next, given that \(35k+22<800\) --> \(k<22.something\) --> so \(k\), can take 23 values from 0 to 22, inclusive, which means that \(n\) also can take 23 values (the least value of \(n\) will be 22 for \(k=0\)).
Answer: B.
For more about this concept see:
manhattan-remainder-problem-93752.html#p721341when-positive-integer-n-is-divided-by-5-the-remainder-is-90442.html#p722552when-the-positive-integer-a-is-divided-by-5-and-125591.html#p1028654Hope it helps.