100 - The 3n + 1 Problem

Note that the first input number \(i\) can be greater than the second input number \(j\).

Otherwise, this problem can be solved straightforwardly.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.