Research Article
Novel Theorems and Algorithms Relating to the Collatz Conjecture
| (1) | Obtain the maximum number for the algorithm to consider: | | (2) | for int do | | (3) | Set counters and , and set | | (4) | whiledo | | (5) | ifthen | | (6) | Set | | (7) | else {} | | (8) | Set | | (9) | end if | | (10) | Increase | | (11) | if && then | | (12) | Set | | (13) | end if | | (14) | end while | | (15) | Output , , | | (16) | Convert to bases 2, 3, 4, then output | | (17) | end for |
|