Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346% generated by GAPDoc2LaTeX from XML source (Frank Luebeck)1\documentclass[a4paper,11pt]{report}23\usepackage{a4wide}4\sloppy5\pagestyle{myheadings}6\usepackage{amssymb}7\usepackage[latin1]{inputenc}8\usepackage{makeidx}9\makeindex10\usepackage{color}11\definecolor{FireBrick}{rgb}{0.5812,0.0074,0.0083}12\definecolor{RoyalBlue}{rgb}{0.0236,0.0894,0.6179}13\definecolor{RoyalGreen}{rgb}{0.0236,0.6179,0.0894}14\definecolor{RoyalRed}{rgb}{0.6179,0.0236,0.0894}15\definecolor{LightBlue}{rgb}{0.8544,0.9511,1.0000}16\definecolor{Black}{rgb}{0.0,0.0,0.0}1718\definecolor{linkColor}{rgb}{0.0,0.0,0.554}19\definecolor{citeColor}{rgb}{0.0,0.0,0.554}20\definecolor{fileColor}{rgb}{0.0,0.0,0.554}21\definecolor{urlColor}{rgb}{0.0,0.0,0.554}22\definecolor{promptColor}{rgb}{0.0,0.0,0.589}23\definecolor{brkpromptColor}{rgb}{0.589,0.0,0.0}24\definecolor{gapinputColor}{rgb}{0.589,0.0,0.0}25\definecolor{gapoutputColor}{rgb}{0.0,0.0,0.0}2627%% for a long time these were red and blue by default,28%% now black, but keep variables to overwrite29\definecolor{FuncColor}{rgb}{0.0,0.0,0.0}30%% strange name because of pdflatex bug:31\definecolor{Chapter }{rgb}{0.0,0.0,0.0}32\definecolor{DarkOlive}{rgb}{0.1047,0.2412,0.0064}333435\usepackage{fancyvrb}3637\usepackage{mathptmx,helvet}38\usepackage[T1]{fontenc}39\usepackage{textcomp}404142\usepackage[43pdftex=true,44bookmarks=true,45a4paper=true,46pdftitle={Written with GAPDoc},47pdfcreator={LaTeX with hyperref package / GAPDoc},48colorlinks=true,49backref=page,50breaklinks=true,51linkcolor=linkColor,52citecolor=citeColor,53filecolor=fileColor,54urlcolor=urlColor,55pdfpagemode={UseNone},56]{hyperref}5758\newcommand{\maintitlesize}{\fontsize{50}{55}\selectfont}5960% write page numbers to a .pnr log file for online help61\newwrite\pagenrlog62\immediate\openout\pagenrlog =\jobname.pnr63\immediate\write\pagenrlog{PAGENRS := [}64\newcommand{\logpage}[1]{\protect\write\pagenrlog{#1, \thepage,}}65%% were never documented, give conflicts with some additional packages6667\newcommand{\GAP}{\textsf{GAP}}6869%% nicer description environments, allows long labels70\usepackage{enumitem}71\setdescription{style=nextline}7273%% depth of toc74\setcounter{tocdepth}{1}757677787980%% command for ColorPrompt style examples81\newcommand{\gapprompt}[1]{\color{promptColor}{\bfseries #1}}82\newcommand{\gapbrkprompt}[1]{\color{brkpromptColor}{\bfseries #1}}83\newcommand{\gapinput}[1]{\color{gapinputColor}{#1}}848586\begin{document}8788\logpage{[ 0, 0, 0 ]}89\begin{titlepage}90\mbox{}\vfill9192\begin{center}{\maintitlesize \textbf{The \textsf{ThreeKPlusOne} Package\mbox{}}}\\93\vfill9495\hypersetup{pdftitle=The \textsf{ThreeKPlusOne} Package}96\markright{\scriptsize \mbox{}\hfill The \textsf{ThreeKPlusOne} Package \hfill\mbox{}}97{\Huge Version 42\mbox{}}\\[1cm]98\mbox{}\\[2cm]99{\Large \textbf{Dummy Auth{\"o}r \mbox{}}}\\100\hypersetup{pdfauthor=Dummy Auth{\"o}r }101\end{center}\vfill102103\mbox{}\\104{\mbox{}\\105\small \noindent \textbf{Dummy Auth{\"o}r } Email: \href{mailto://3kplusone@dev.null} {\texttt{3kplusone@dev.null}}}\\106\end{titlepage}107108\newpage\setcounter{page}{2}109{\small110\section*{Copyright}111\logpage{[ 0, 0, 1 ]}112{\copyright} 2000 The Author.113114You can do with this package what you want.115116Really. \mbox{}}\\[1cm]117\newpage118119\def\contentsname{Contents\logpage{[ 0, 0, 2 ]}}120121\tableofcontents122\newpage123124125\chapter{\textcolor{Chapter }{The $3k+1$ Problem}}\logpage{[ 1, 0, 0 ]}126\hyperdef{L}{X8769FB038733F6F4}{}127{128129\section{\textcolor{Chapter }{Theory}}\label{sec:theory}130\logpage{[ 1, 1, 0 ]}131\hyperdef{L}{X8729B87B848E3F89}{}132{133Let $k \in {\ensuremath{\mathbb N}}$ be a natural number. We consider the sequence $n(i, k), i \in {\ensuremath{\mathbb N}},$ with $n(1, k) = k$ and else $n(i+1, k) = n(i, k) / 2$ if $n(i, k)$ is even and $n(i+1, k) = 3 n(i, k) + 1$ if $n(i, k)$ is odd.134135It is not known whether for any natural number $k \in {\ensuremath{\mathbb N}}$ there is an $m \in {\ensuremath{\mathbb N}}$ with $n(m, k) = 1$.136137\textsf{ThreeKPlusOne} provides the function \texttt{ThreeKPlusOneSequence} (\ref{ThreeKPlusOneSequence}) to explore this for given $n$. If you really want to know something about this problem, see \cite{Wi98} or \href{http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/} {\texttt{http://www.ku.de/mgf/mathematik/lehrstuhlstatistik/team/dr-guenther-wirsching/}} for more details (and forget this package). }138139140\section{\textcolor{Chapter }{Program}}\logpage{[ 1, 2, 0 ]}141\hyperdef{L}{X7A4605C07A94C9F6}{}142{143In this section we describe the main function of this package.144145\subsection{\textcolor{Chapter }{ThreeKPlusOneSequence}}146\logpage{[ 1, 2, 1 ]}\nobreak147\hyperdef{L}{X7B1A31B8870EA092}{}148{\noindent\textcolor{FuncColor}{$\triangleright$\enspace\texttt{ThreeKPlusOneSequence({\mdseries\slshape k[, max]})\index{ThreeKPlusOneSequence@\texttt{ThreeKPlusOneSequence}}149\label{ThreeKPlusOneSequence}150}\hfill{\scriptsize (function)}}\\151152153This function computes for a natural number \mbox{\texttt{\mdseries\slshape k}} the beginning of the sequence $n(i, k)$ defined in section \ref{sec:theory}. The sequence stops at the first $1$ or at $n(\mbox{\texttt{\mdseries\slshape max}}, k)$, if \mbox{\texttt{\mdseries\slshape max}} is given.154\begin{Verbatim}[commandchars=!@|,fontsize=\small,frame=single,label=Example]155!gapprompt@gap>| !gapinput@ThreeKPlusOneSequence(101);|156"Sorry, not yet implemented. Wait for Version 84 of the package"157\end{Verbatim}158}159160}161162}163164\def\bibname{References\logpage{[ "Bib", 0, 0 ]}165\hyperdef{L}{X7A6F98FD85F02BFE}{}166}167168\bibliographystyle{alpha}169\bibliography{3k+1}170171\addcontentsline{toc}{chapter}{References}172173\def\indexname{Index\logpage{[ "Ind", 0, 0 ]}174\hyperdef{L}{X83A0356F839C696F}{}175}176177\cleardoublepage178\phantomsection179\addcontentsline{toc}{chapter}{Index}180181182\printindex183184\newpage185\immediate\write\pagenrlog{["End"], \arabic{page}];}186\immediate\closeout\pagenrlog187\end{document}188189190