Bunuel
A certain roller coaster ride has between 80 and 110 people waiting in line to board. If riders are let on only in groups of 5 there will be 2 riders that do not get on. If the riders are let on only in groups of 6 all riders will be able to get on the roller coaster. How many riders are in the line?
A. 82
B. 87
C. 90
D. 102
E. 110
Solved in 33 seconds.
If we let X = the number of people on the roller coaster, we know that X is somewhere between 80 - 110.
If riders are let on only in groups of 5 there will be 2 riders that do not get on. This tells us that X = 2 (mod 5). Therefore, our only possible choices for X are (82, 87, 92, 97, 102, 107).
If the riders are let on only in groups of 6 all riders will be able to get on the roller coaster. This tells us that X = 0 (mod 6). We can check our available options and see which one is evenly divisible by 6.
82 = 60 + 22 = +4 mod 6.
Noticing this, let's just see how much each additional option increases:
87 = (82
+ 5 = 4 + 5 = 9, not divisible by 6
92 = 9 + 5 = 14, not divisible by 6
97 = 92 + 5 = 14 + 5 = 19, not divisible by 6
102 = 97 + 6 = 19 + 5 = 24,
DIVISIBLE BY 6.
Therefore, 102 = 0 (mod 6) and = 2 (mod 5).
Answer: D