For a∈N denote u(a)=[2a], v(a)=[3a]. If n=p1a1⋯pkak is the prime factorization of n∈N, it is straightforward that D2(n)=(u(a1)+1)⋯(u(ak)+1), D3(n)=(v(a1)+1)⋯(v(ak)+1).
Define a1=2⋅998 and set ai=2v(ai−1) for i≥2. (Only the first several terms of the infinite sequence (ai) will be used.) With this definition we have u(ai)=998 and u(ai)=v(ai−1) for i≥2.
Note also that v(ai)=⌊32v(ai−1)⌋<v(ai−1) if v(ai−1)>0. Thus the sequence (v(ai)) decreases, so its terms are 0 for sufficiently large i.
Take the first index k such that v(ak)=0 and define n=p1a1⋯pkak. Because u(ai)=v(ai−1) for i≥2,
D2(n)=(998+1)(u(a2)+1)⋯(u(ak)+1)=999(v(a1)+1)⋯(v(ak−1)+1).
In addition D3(n)=(v(a1)+1)⋯(v(ak−1)+1)(v(ak)+1) equals (v(a1)+1)⋯(v(ak−1)+1) since the last factor v(ak)+1 is 1 due to v(ak)=0. Therefore D2(n)=999D3(n).