View Single Post
Old 2008-06-12, 16:37   #6
philmoore's Avatar
Sep 2002
Tracktown, U.S.A.

2×13×43 Posts

My impression of the original poster's request was that this was an assignment in programming rather than a math project. My guess is that the teacher wanted a program, which for each integer input n, computed the sum of proper divisors of n to see if it is equal to n, perhaps contained in a loop incrementing n. This can be done in a very simple-minded (and inefficient) way, or one could apply a bit of math to make the search more efficient. Perhaps the original poster should clarify what is really wanted.
philmoore is offline   Reply With Quote