Algorithm of 3n + 1 problem

Consider the following algorithm:
 
  1.    input n

  2.    print n

  3.    if n = 1 then STOP  4.       if n is odd then  tex2html_wrap_inline44 
  5.       else  tex2html_wrap_inline46 

  6.    GOTO 2

No comments:

Post a Comment

Write your comment - Share Knowledge and Experience