Student Fit Problem
T is the number of total students
n is the number of teachers/classes
c is the number of students per class
c = T / n
for every value of n
, I want to also compute r
, or "the number of students you can add to T
to get c
to rise to the next whole number"
so for example:
T = 105
n = 10
c = 10.5
in this case, r = 5
(because T + 5
would raise c
to 111
)
How can you express r
as a function of T
and n
?