Skip to content

Commit

Permalink
[perfect-numbers] Join broken line and add colon (#2318)
Browse files Browse the repository at this point in the history
* Join broken line and add colon
  As per KOTP's suggestions on track raku :
  exercism/raku#669
* Use backticks on inline math
* backtick 15, remove parentheses
* Add fullstop.

Co-authored-by: Victor Goff <[email protected]>
  • Loading branch information
habere-et-dispertire and kotp authored Sep 7, 2023
1 parent dbeaf6d commit d2229de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exercises/perfect-numbers/description.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Description

Determine if a number is perfect, abundant, or deficient based on
Nicomachus' (60 - 120 CE) classification scheme for positive integers.
Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for positive integers.

The Greek mathematician [Nicomachus][nicomachus] devised a classification scheme for positive integers, identifying each as belonging uniquely to the categories of **perfect**, **abundant**, or **deficient** based on their [aliquot sum][aliquot-sum].
The aliquot sum is defined as the sum of the factors of a number not including the number itself.
For example, the aliquot sum of 15 is (1 + 3 + 5) = 9
For example, the aliquot sum of `15` is `1 + 3 + 5 = 9`.

- **Perfect**: aliquot sum = number
- 6 is a perfect number because (1 + 2 + 3) = 6
Expand Down

0 comments on commit d2229de

Please sign in to comment.