day2/session2.tex
changeset 393 b7d2222b60a8
parent 389 aa392117454f
child 424 2ab009c9f80a
equal deleted inserted replaced
392:534803f1ca11 393:b7d2222b60a8
   192 
   192 
   193 \subsection{Exercises}
   193 \subsection{Exercises}
   194 
   194 
   195 \begin{frame}{Problem set 1: Problem 1.1}
   195 \begin{frame}{Problem set 1: Problem 1.1}
   196   Write a program that displays all three digit numbers that are equal to the sum of the cubes of their digits. That is, print numbers $abc$ that have the property $abc = a^3 + b^3 + c^3$\\
   196   Write a program that displays all three digit numbers that are equal to the sum of the cubes of their digits. That is, print numbers $abc$ that have the property $abc = a^3 + b^3 + c^3$\\
       
   197 For example, $153 = 1^3 + 5^3 + 3^3$\\
   197 \vspace*{0.2in}
   198 \vspace*{0.2in}
   198 \emphbar{These are called $Armstrong$ numbers.}
   199 \emphbar{These are called $Armstrong$ numbers.}
   199 \end{frame}
   200 \end{frame}
   200 
   201 
   201 \begin{frame}{Problem 1.2 - Collatz sequence}
   202 \begin{frame}{Problem 1.2 - Collatz sequence}