aboutsummaryrefslogtreecommitdiffstats
path: root/doc/exercises.tex
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-30 00:04:21 +0200
committerMattias Andrée <maandree@kth.se>2016-07-30 00:04:21 +0200
commit7e8ea5ca2505686932b489e0aa1df0b3f0433e19 (patch)
tree5fe7e983a0b5c63814a6b3ac1a8df259893d5efe /doc/exercises.tex
parentAdd missing ! (diff)
downloadlibzahl-7e8ea5ca2505686932b489e0aa1df0b3f0433e19.tar.gz
libzahl-7e8ea5ca2505686932b489e0aa1df0b3f0433e19.tar.bz2
libzahl-7e8ea5ca2505686932b489e0aa1df0b3f0433e19.tar.xz
Fix typo
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--doc/exercises.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/exercises.tex b/doc/exercises.tex
index 755390e..e36ee86 100644
--- a/doc/exercises.tex
+++ b/doc/exercises.tex
@@ -284,7 +284,7 @@ Implement the function
\noindent
which calculates $r = {}^n{}b \text{ mod } m$, where
${}^0{}b = 1$, ${}^1{}b = b$, ${}^2{}b = b^b$,
-${}^3{}b = b^{b^b}$, ${}^b{}b = b^{b^{b^b}}$, and so on.
+${}^3{}b = b^{b^b}$, ${}^4{}b = b^{b^{b^b}}$, and so on.
You can assume $b > 0$ and $m > 0$. You can also assume
\texttt{r}, \texttt{b}, and \texttt{m} are mutually
unique pointers.