There is no hint given for this part, but it might be useful in later parts to see if you notice any patterns in the distribution of the possible outputs of the function \(f\).
See part (a).
If \(n^2 < m < (n+1)^2\), then \(f(m)=d\) is equivalent to \(n + \dfrac{d}{10} < \sqrt{m} < n+\dfrac{d+1}{10}\).
Similar to the result in (c), if \(n\) is one more than a multiple of \(5\), then in the list \[f(n^2+1),f(n^2+2),\dots,f(n^2+2n)\] every possible value from \(0\) through \(9\) appears exactly \(\dfrac{n-1}{5}\) times, with the exception of \(4\) and \(7\) which appear \(\dfrac{n-1}{5}+1\) times each. Try to find and prove other similar results.