Let’s say that each 5 minutes the coffee gets halfway closer to room temperature:
I think HERE is where we have the problem. If you have two objects of different sizes, they won't necessarily both get halfway closer to room temperature in the same interval of time.
Wikipedia: "The law of Heat Conduction, also known as Fourier's law, states that the time rate of heat transfer through a material is proportional to the negative gradient in the temperature and to the area at right angles, to that gradient, through which the heat is flowing." In normal English this means that the rate at which heat is lost (here "heat" is referring to an energy, so that for instance if A and B are the same temperature but A is twice the size of B, A will have twice the heat of B) is some constant times the difference in temperature times the surface area through which heat flows.
So let's suppose that our coffee cups are cylindrical and insulating, so that only the top of the cup is losing energy to the air. This would mean that the surface area through which heat flows is the same no matter how much liquid there is. Thus, the rate at which heat is lost is proportional to the difference in temperature between the liquid and room temperature - or,
the rate at which temperature is lost is proportional to the difference in temperature divided by the volume of the liquid.
Let's take miniGOINGS's example. Suppose the liquid starts at 90 degrees Celsius and room temperature is 30 degrees Celsius. Suppose each person has 100 ml of coffee and that they add 50 ml of cream.
Now the student adds cream at the beginning and thus ends up with a coffee at (90*2 + 30)/3 = 70 degrees, so the temperature difference is 40 degrees and the volume is 150 ml. On the other hand, for the professor, the temperature difference is 60 degrees but his volume is 100 ml. The professor should be losing heat at a rate of about (60/.1)/(40/.15) = 2.25 times that of the student.
So how do we calculate stuff? Well, since you lose heat at a rate proportional to the temperature, you can model the temperature through time as Tr + Ts * e^(-k t), where Tr is room temperature, Ts is the starting difference in temperature, and k is some constant. The rate of temperature change is the derivative (don't worry about this if you don't know what it means), which is Ts * k * e^(-k t). At t = 0, e^(-k t) is 1, so we just want Ts * k to be equal to our rate of temperature loss. Remember that the rate of temperature loss is proportional to the temperature difference (Ts) times one over the volume of liquid? That means that the value of k will be some number divided by the liquid's volume.
So let's arbitrarily set k = .25 / (volume in liters) and see what happens when t = 1 (we can arbitrarily define this to be 20 minutes). We get:
student's temperature = 30 + 40 * e^(- .25/.15) = 37.5 degrees
professor's temperature = 30 + 60 * e^(- .25/.1) = 33.3 degrees.
professor's final temperature = 30 + 2/3 * (60 * e^(- .25/.1)) = 32.2 degrees.
As you can see, the professor's losing heat much more rapidly because of his smaller volume contacting the same surface, so even though he starts out with more heat he ends up (in this case) colder than the student!
Interestingly, it turns out that ONLY the k constant affects things. To see why, let's write out the equation including the cream. Here 2/3 is the proportion of coffee, but this can be any number from 0 to 1.
student's temperature = Tr + (2/3 * Ts) * e^(- k t)
professor's temperature = Tr + 2/3 * (Ts * e^(- k t))
As you can see they evaluate to the same thing - the only difference is the value of the constant k! And remember that k is proportional to one over the liquid's volume (as well as to the surface area through which heat is lost). So the professor's coffee will end up colder as long as his k is larger. This actually happens whenever the surface area of the cup increases by a smaller factor than the factor by which the liquid volume increases. This always happens with normal coffee cups, so in real life the professor's coffee will end up colder.