Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563555 views
1
2
1 The 3k+1 Problem
3
4
5
1.1 Theory
6
7
Let k ∈ ℕ be a natural number. We consider the sequence n(i, k), i ∈ ℕ, with
8
n(1, k) = k and else n(i+1, k) = n(i, k) / 2 if n(i, k) is even and n(i+1,
9
k) = 3 n(i, k) + 1 if n(i, k) is odd.
10
11
It is not known whether for any natural number k ∈ ℕ there is an m ∈ ℕ with
12
n(m, k) = 1.
13
14
ThreeKPlusOne provides the function ThreeKPlusOneSequence (1.2-1) to explore
15
this for given n. If you really want to know something about this problem,
16
see [Wir98] or
17
http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/
18
for more details (and forget this package).
19
20
21
1.2 Program
22
23
In this section we describe the main function of this package.
24
25
1.2-1 ThreeKPlusOneSequence
26
27
ThreeKPlusOneSequence( k[, max] )  function
28
29
This function computes for a natural number k the beginning of the sequence
30
n(i, k) defined in section 1.1. The sequence stops at the first 1 or at
31
n(max, k), if max is given.
32
33
 Example 
34
gap> ThreeKPlusOneSequence(101);
35
"Sorry, not yet implemented. Wait for Version 84 of the package"
36

37
38
39