Post Reply 
(12C) 3n + 1 conjecture
07-06-2018, 10:16 AM
Post: #1
(12C) 3n + 1 conjecture
This program allows to test the 3n + 1 conjecture.

Consider an integer n.
If it's even, divide it by 2 (n÷2)
If it's odd, multiply by 3 and add 1 (3n + 1)

No matter what value of n, the sequence will always reach 1.
The question is: if we start with an arbitrary integer will we always reach 1?
Nobody knows.

Example: Start with integer 17

17 R/S --> 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1

Program: Collatz conjecture
Code:

01 ENTER
02 ENTER
03 STO 0
04 RCL 0
05   2
06   ÷
07 FRAC
08   2
09   x
10 X=0?
11 GTO 13
12 GTO 23
13 RCL 0
14   2
15   ÷
16 PSE
17 STO 0
18   1
19 X<>Y
20 X≤Y?
21 GTO 31
22 GTO 01
23 RCL 0
24   3
25   x
26   1
27   +
28 PSE
29 STO 0
30 GTO 01
31 RCL 0

Gamo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) 3n + 1 conjecture - Gamo - 07-06-2018 10:16 AM
RE: (12C) 3n + 1 conjecture - Thomas Klemm - 07-06-2018, 06:59 PM
RE: (12C) 3n + 1 conjecture - Dieter - 07-06-2018, 07:25 PM
RE: (12C) 3n + 1 conjecture - Dieter - 07-06-2018, 07:13 PM
RE: (12C) 3n + 1 conjecture - Joe Horn - 07-06-2018, 09:50 PM
RE: (12C) 3n + 1 conjecture - Dieter - 07-07-2018, 07:36 AM
RE: (12C) 3n + 1 conjecture - Thomas Klemm - 07-06-2018, 10:31 PM
RE: (12C) 3n + 1 conjecture - Joe Horn - 07-07-2018, 03:10 AM
RE: (12C) 3n + 1 conjecture - Gamo - 07-07-2018, 01:51 AM
RE: (12C) 3n + 1 conjecture - Thomas Klemm - 07-07-2018, 08:37 AM
RE: (12C) 3n + 1 conjecture - Joe Horn - 07-07-2018, 02:24 PM
RE: (12C) 3n + 1 conjecture - Dieter - 07-07-2018, 04:57 PM
RE: (12C) 3n + 1 conjecture - Joe Horn - 07-07-2018, 07:04 PM



User(s) browsing this thread: 1 Guest(s)