Let us define a function f:N→N0 by f(1)=0 and, for all n∈N,
f(2n)=2f(n)+1,f(2n+1)=2f(n).Given a positive integer p, define a sequence (un) by u0=p and uk+1=f(uk) whenever uk=0.(a) Prove that, for each p∈N, there is a unique integer v(p) such that uv(p)=0.
(b) Compute v(1994). What is the smallest integer p>0 for which v(p)=v(1994).
(c) Given an integer N, determine the smallest integer p such that v(p)=N. algebranumber theoryfunction