(a+1)/(b+1) = (a * (1 + 1/a))/(b * (1 + 1/a))
Which in turn, is the same as (a/b) * ((1+1/a)/(1+1/b))
This can only be greater than a/b if (1+1/a) / (1+1/b) > 1.
A fraction is greater than 1 if the numerator is greater than the denominator, which means 1/a > 1/b. Dividing by a greater number leads to a smaller result, so this happens if a < b.
12345 < 54321, so 12346/54322 is greater.
Did I overlook a much easier way to solve this, or is third grade much better at math than I am now?