Let Z>0 denote the set of positive integers. Consider a function f:Z>0→Z>0. For any m,n∈Z>0 we write fn(m)=nf(f(…f(m)…)). Suppose that f has the following two properties:(i) if m,n∈Z>0, then nfn(m)−m∈Z>0;
(ii) The set Z>0∖{f(n)∣n∈Z>0} is finite.Prove that the sequence f(1)−1,f(2)−2,f(3)−3,… is periodic.Proposed by Ang Jie Jun, Singapore