day2/session5.tex
changeset 276 4555c3814dd4
parent 263 8a4a1e5aec85
child 288 c4e25269a86c
equal deleted inserted replaced
275:71e50184d482 276:4555c3814dd4
    76 \title[Exercises]{Exercises}
    76 \title[Exercises]{Exercises}
    77 
    77 
    78 \author[FOSSEE] {FOSSEE}
    78 \author[FOSSEE] {FOSSEE}
    79 
    79 
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    81 \date[] {1, November 2009\\Day 2}
    81 \date[] {1 November, 2009\\Day 2, Session 4}
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    83 
    83 
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    85 %\logo{\pgfuseimage{iitmlogo}}
    85 %\logo{\pgfuseimage{iitmlogo}}
    86 
    86 
   109 \begin{frame}
   109 \begin{frame}
   110   \titlepage
   110   \titlepage
   111 \end{frame}
   111 \end{frame}
   112 
   112 
   113 \begin{frame}{Problem 1.1}
   113 \begin{frame}{Problem 1.1}
   114   The aliquot of a number is defined as: the sum of the \emph{proper} divisors of the number. For example, aliquot(12) = 1 + 2 + 3 + 4 + 6 = 16.\\
   114   The aliquot of a number is defined as: the sum of the \emph{proper} divisors of the number. \\For example: 
       
   115 \center{aliquot(12) = 1 + 2 + 3 + 4 + 6 = 16.}\\
   115   Write a function that returns the aliquot number of a given number. 
   116   Write a function that returns the aliquot number of a given number. 
   116 \end{frame}
   117 \end{frame}
   117 
   118 
   118 \begin{frame}{Problem 1.2}
   119 \begin{frame}{Problem 1.2}
   119   A pair of numbers (a, b) is said to be \alert{amicable} if the aliquot number of a is b and the aliquot number of b is a.\\
   120   Pair of numbers (a, b) is said to be \alert{amicable} if aliquot number of a is b and aliquot number of b is a.\\
   120   Example: \texttt{220, 284}\\
   121   Example: \texttt{220, 284}\\
   121   Write a program that prints all four digit amicable pairs.
   122   Write a program that prints all four digit amicable pairs.
   122   
   123   
   123 \inctime{20}
   124 \inctime{20}
   124 \end{frame}
   125 \end{frame}