Perfect numbers: Difference between revisions
Content added Content deleted
(make the math prominent) |
m (added whitespace before the TOC (table of contents), added a ;See also: (bold) header, used a larger font for showing the formulae.) |
||
Line 1: | Line 1: | ||
{{task|Discrete math}} |
{{task|Discrete math}} |
||
Write a function which says whether a number is perfect. |
|||
<br> |
<br> |
||
[[wp:Perfect_numbers|A perfect number]] is a positive integer that is |
[[wp:Perfect_numbers|A perfect number]] is a positive integer that is the sum of its proper positive divisors excluding the number itself. |
||
the sum of its proper positive divisors excluding the number itself. |
|||
⚫ | |||
of all of its positive divisors (including itself). |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[Rational Arithmetic]] |
* [[Rational Arithmetic]] |
||
* [[oeis:A000396|Perfect numbers on OEIS]] |
* [[oeis:A000396|Perfect numbers on OEIS]] |
||
* [http://www.oddperfect.org/ Odd Perfect] showing the current status of bounds on odd perfect numbers. |
* [http://www.oddperfect.org/ Odd Perfect] showing the current status of bounds on odd perfect numbers. |
||
<br> |
<br><br> |
||
=={{header|Ada}}== |
=={{header|Ada}}== |