Jump to content

Aliquot sequence classifications: Difference between revisions

m
changed N'th to user superscript.
m (→‎{{header|REXX}}: changed program to only do integer arithmetic (by increasing numeric digits).)
m (changed N'th to user superscript.)
Line 8:
:* If the second term is K then all future terms are also K and so the sequence repeats from the first term with period 1 and K is called '''perfect'''.
:* If the third term ''would'' be repeating K then the sequence repeats with period 2 and K is called '''amicable'''.
:* If the N'<sup>th</sup> term ''would'' be repeating K for the first time, with N > 3 then the sequence repeats with period N - 1 and K is called '''sociable'''.
:<br>Perfect, amicable and sociable numbers eventually repeat the original number K; there are other repetitions...
:* Some K have a sequence that eventually forms a periodic repetition of period 1 but of a number other than K, for example 95 which forms the sequence <code>95, 25, 6, 6, 6, ...</code> such K are called '''aspiring'''.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.