\displaystyle f\left(\frac{m}{n}\sqrt{2}\right)=b^{m/n}.