A teacher wanted to equally distribute 2017 candies to her class of no more than 50 students, but she found out that after distributing the candies evenly, there is a total of 22 candies remaining.
What is the total number of students in this class?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
SInce 2 0 1 7 − 2 2 = 1 9 9 5 candies are distributed evenly among n ≤ 5 0 students, we also require n to be a factor of 1 9 9 5 greater than 2 2 , (for otherwise the teacher would be able to continue evenly distributing some of the remaining 2 2 candies).
Now as 1 9 9 5 = 3 × 5 × 7 × 1 9 , the only factor between 2 2 and 5 0 , and hence the desired value for n , is 5 × 7 = 3 5 .