|
|
|
|
|
|
|
|
The Collatz (3x + 1) Problem
|
|
|
|
|
|
Organization: | Wolfram Research, Inc. |
|
|
|
|
|
|
This package computes the iterates of the Collatz map: x -> x/2, if x is even; x -> (3x+1)/2, if x is odd, until an iterate reaches one of the four known cycles (the program runs on positive and negative integers).
|
|
|
|
|
|
|
|
|
|
|
|
Examples, Collatz problem, 3x+1 problem, Collatz, TotalStoppingTime, numerical sequences
|
|
|
|
|
|
http://mathworld.wolfram.com/CollatzProblem.html
|
|
|
|
|
|
| Collatz.m (4 KB) - Mathematica Package | Files specific to Mathematica 2.2 version:
| | Collatz.m (4 KB) - Mathematica Package |
|
|