diff options
author | Puneeth Chaganti | 2010-05-01 11:59:15 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2010-05-01 11:59:15 +0530 |
commit | e9f385b4df0242a0e4f483d0d89ecb4ddf25d6ad (patch) | |
tree | 1a4053cc3209626a6987c252ba140f31f13b555d | |
parent | 6bbcd3e4cbfd122f447061cbbba98c3873309693 (diff) | |
download | workshops-e9f385b4df0242a0e4f483d0d89ecb4ddf25d6ad.tar.gz workshops-e9f385b4df0242a0e4f483d0d89ecb4ddf25d6ad.tar.bz2 workshops-e9f385b4df0242a0e4f483d0d89ecb4ddf25d6ad.zip |
Added example for Amstrong numbers.
-rw-r--r-- | day2/session2.tex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/day2/session2.tex b/day2/session2.tex index 03bf27f..8bcc890 100644 --- a/day2/session2.tex +++ b/day2/session2.tex @@ -194,6 +194,7 @@ In []: for i in range(3, 10, 2): \begin{frame}{Problem set 1: Problem 1.1} 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$\\ +For example, $153 = 1^3 + 5^3 + 3^3$\\ \vspace*{0.2in} \emphbar{These are called $Armstrong$ numbers.} \end{frame} |