Skip to content

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.

Notifications You must be signed in to change notification settings

mrepol742/3xplus1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

permutation

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.

compile

g++ main.cpp

run

./a.out

Result

 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: 

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages