RosettaCodeData/Task/Proper-divisors/00-TASK.txt
2023-07-01 13:44:08 -04:00

27 lines
1 KiB
Text

The   [http://planetmath.org/properdivisor proper divisors]   of a positive integer '''N''' are those numbers, other than '''N''' itself, that divide '''N''' without remainder.
For '''N''' > 1 they will always include 1,   but for '''N''' == 1 there are no proper divisors.
;Examples:
The proper divisors of     6     are   1, 2, and 3.
<br>The proper divisors of &nbsp; 100 &nbsp; are &nbsp; 1, 2, 4, 5, 10, 20, 25, and 50.
;Task:
# Create a routine to generate all the proper divisors of a number.
# use it to show the proper divisors of the numbers 1 to 10 inclusive.
# Find a number in the range 1 to 20,000 with the most proper divisors. Show the number and just the count of how many proper divisors it has.
<br>
Show all output here.
;Related tasks:
* &nbsp; [[Amicable pairs]]
* &nbsp; [[Abundant, deficient and perfect number classifications]]
* &nbsp; [[Aliquot sequence classifications]]
* &nbsp; [[Factors of an integer]]
* &nbsp; [[Prime decomposition]]
<br><br>