Suppose that a=m/n and b=m/(m−n) where gcd(m,n)=1. If n=21m then (m,n)=(2,1) and the statement clearly holds in this case as f(2)=−1. Therefore from now on we assume that n=21m, and without loss of generality assume n<21m. We will induct on m.
Assume that m>2 and the statement holds for all smaller m. Since we assume that m>2n, we have
f(a)=⌈nm⌉−3+f(⌈nm⌉−nm1)=1+⌈nm−n⌉−3+f(⌈nm−n⌉−nm−n1)=1+f(nm−n).
We also have
f(b)=−1+f(2−m−nm1)=−1+f(m−2nm−n).
Therefore by the inductive hypothesis,
f(a)+f(b)=f(nm−n)+f(m−2nm−n)=−2,
as desired.