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

563575 views
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<!-- A complete "fake package" documentation
4
-->
5
6
<!DOCTYPE Book SYSTEM "gapdoc.dtd">
7
8
<Book Name="3k+1">
9
10
<TitlePage>
11
<Title>The <Package>ThreeKPlusOne</Package> Package</Title>
12
<Version>Version 42</Version>
13
<Author>Dummy Authör
14
<Email>[email protected]</Email>
15
</Author>
16
17
<Copyright>&copyright; 2000 The Author. <P/>
18
You can do with this package what you want.<P/> Really.
19
</Copyright>
20
</TitlePage>
21
22
<TableOfContents/>
23
24
<Body>
25
<Chapter> <Heading>The <M>3k+1</M> Problem</Heading>
26
<Section Label="sec:theory"> <Heading>Theory</Heading>
27
Let <M>k \in &NN;</M> be a natural number. We consider the
28
sequence <M>n(i, k), i \in &NN;,</M> with <M>n(1, k) = k</M> and
29
else <M>n(i+1, k) = n(i, k) / 2</M> if <M>n(i, k)</M> is even
30
and <M>n(i+1, k) = 3 n(i, k) + 1</M> if <M>n(i, k)</M> is odd.
31
<P/> It is not known whether for any natural number <M>k \in
32
&NN;</M> there is an <M>m \in &NN;</M> with <M>n(m, k) = 1</M>.
33
<P/>
34
<Package>ThreeKPlusOne</Package> provides the function <Ref
35
Func="ThreeKPlusOneSequence"/> to explore this for given
36
<M>n</M>. If you really want to know something about this
37
problem, see <Cite Key="Wi98"/> or
38
<URL>http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/</URL>
39
for more details (and forget this package).
40
</Section>
41
42
<Section> <Heading>Program</Heading>
43
In this section we describe the main function of this package.
44
<ManSection>
45
<Func Name="ThreeKPlusOneSequence" Arg="k[, max]"/>
46
<Description>
47
This function computes for a natural number <A>k</A> the
48
beginning of the sequence <M>n(i, k)</M> defined in section
49
<Ref Sect="sec:theory"/>. The sequence stops at the first
50
<M>1</M> or at <M>n(<A>max</A>, k)</M>, if <A>max</A> is
51
given.
52
<Example>
53
gap> ThreeKPlusOneSequence(101);
54
"Sorry, not yet implemented. Wait for Version 84 of the package"
55
</Example>
56
</Description>
57
</ManSection>
58
</Section>
59
</Chapter>
60
</Body>
61
62
<Bibliography Databases="3k+1" />
63
<TheIndex/>
64
65
</Book>
66
67
68