# HG changeset patch # User Puneeth Chaganti # Date 1272695355 -19800 # Node ID b7d2222b60a8ffcd322f9af6cc56fea14e1b2a23 # Parent 534803f1ca11e5687544fc3ed506678bbab99065 Added example for Amstrong numbers. diff -r 534803f1ca11 -r b7d2222b60a8 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}