Added example for Amstrong numbers.
authorPuneeth Chaganti <punchagan@gmail.com>
Sat, 01 May 2010 11:59:15 +0530
changeset 393 b7d2222b60a8
parent 392 534803f1ca11
child 394 b364e40ec828
Added example for Amstrong numbers.
day2/session2.tex
--- a/day2/session2.tex	Fri Apr 30 12:46:14 2010 +0530
+++ b/day2/session2.tex	Sat May 01 11:59:15 2010 +0530
@@ -194,6 +194,7 @@
 
 \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}