GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
<?xml version="1.0" encoding="UTF-8"?>12<!-- A complete "fake package" documentation3-->45<!DOCTYPE Book SYSTEM "gapdoc.dtd">67<Book Name="3k+1">89<TitlePage>10<Title>The <Package>ThreeKPlusOne</Package> Package</Title>11<Version>Version 42</Version>12<Author>Dummy Authör13<Email>[email protected]</Email>14</Author>1516<Copyright>©right; 2000 The Author. <P/>17You can do with this package what you want.<P/> Really.18</Copyright>19</TitlePage>2021<TableOfContents/>2223<Body>24<Chapter> <Heading>The <M>3k+1</M> Problem</Heading>25<Section Label="sec:theory"> <Heading>Theory</Heading>26Let <M>k \in &NN;</M> be a natural number. We consider the27sequence <M>n(i, k), i \in &NN;,</M> with <M>n(1, k) = k</M> and28else <M>n(i+1, k) = n(i, k) / 2</M> if <M>n(i, k)</M> is even29and <M>n(i+1, k) = 3 n(i, k) + 1</M> if <M>n(i, k)</M> is odd.30<P/> It is not known whether for any natural number <M>k \in31&NN;</M> there is an <M>m \in &NN;</M> with <M>n(m, k) = 1</M>.32<P/>33<Package>ThreeKPlusOne</Package> provides the function <Ref34Func="ThreeKPlusOneSequence"/> to explore this for given35<M>n</M>. If you really want to know something about this36problem, see <Cite Key="Wi98"/> or37<URL>http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/</URL>38for more details (and forget this package).39</Section>4041<Section> <Heading>Program</Heading>42In this section we describe the main function of this package.43<ManSection>44<Func Name="ThreeKPlusOneSequence" Arg="k[, max]"/>45<Description>46This function computes for a natural number <A>k</A> the47beginning of the sequence <M>n(i, k)</M> defined in section48<Ref Sect="sec:theory"/>. The sequence stops at the first49<M>1</M> or at <M>n(<A>max</A>, k)</M>, if <A>max</A> is50given.51<Example>52gap> ThreeKPlusOneSequence(101);53"Sorry, not yet implemented. Wait for Version 84 of the package"54</Example>55</Description>56</ManSection>57</Section>58</Chapter>59</Body>6061<Bibliography Databases="3k+1" />62<TheIndex/>6364</Book>65666768