Answer: f(n)=n3−1,n∈N0.
From the given conditions we observe that: f(0)=f(1)=0. For n≥2, define g(n)=f(n)+1. Then
g(2)=8 and
g(mn)=f(mn)+1=f(m)+f(n)+f(m)f(n)+1=(f(m)+1)(f(n)+1)=g(m)g(n), for all m,n≥2.
Fix an integer n>2, and consider a sequence of rational numbers {pk/qk,k≥1}, each term of which is greater than log2n and which converges to log2n. Then from n<2pk/qk we get nqk<2pk, and by the monotonicity of g we obtain
g(nqk)≤g(2pk).
By the multiplicativity of g we get
g(n)≥g(2)pk/qk=23pk/qk=(2pk/qk)3.
Letting k→∞, then g(n)≤n3. Arguing similarly, we get g(n)≥n3. Hence g(n)=n3. Therefore f(n)=n3−1,∀n is the unique solution satisfying the given conditions.