equal
deleted
inserted
replaced
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} |