plz solve this problem
u(n) is defined with:
i. u(0) = a (a is an integer)
ii. f u(n) is even then u(n+1)=u(n)/2, else u(n+1)=3*u(n)+1
Conjecture: For all value of a, there exists a value N such that u(N)=1.
Write a program that asks the user to type the value of an integer a and writes all the values
of u(n) from n=1 to n=N.
Topic archived. No new replies allowed.