Research Article

Novel Theorems and Algorithms Relating to the Collatz Conjecture

Algorithm 2

Peak analysis.
(1)
(2)fordo
(3)  
(4)  whiledo
(5)   ifthen
(6)    
(7)   else {}
(8)    
(9)   end if
(10)   ifthen
(11)    
(12)   end if
(13)   
(14)  end while
(15)  
(16)end for