From e199d5bc13c9d3b0388e8203b39497327127c7ee Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Sat, 1 May 2010 11:59:15 +0530 Subject: Added example for Amstrong numbers. --- day2/session2.tex | 1 + 1 file changed, 1 insertion(+) 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} -- cgit