3x+1. The simplest infamous math problem no one can solve. By using recursive in cpp we can generate number that help study the case.
g++ main.cpp
./a.out
mrepol742@APTX-4869: ~/VSCodeProjects $ cd 3xplus1
mrepol742@APTX-4869: ~/VSCodeProjects/3xplus1 $ g++ main.cpp
mrepol742@APTX-4869: ~/VSCodeProjects/3xplus1 $ a
Enter an integer: 7
7 -> 22
22 -> 11
11 -> 34
34 -> 17
17 -> 52
52 -> 26
26 -> 13
13 -> 40
40 -> 20
20 -> 10
10 -> 5
5 -> 16
16 -> 8
8 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
1 -> 4
4 -> 2
2 -> 1
stopped...
Enter an integer: