+ 8

Have you ever heard about amicable numbers?

From open source wikipedia we know: "Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. (A proper divisor of a number is a positive factor of that number other than the number itself. For example, the proper divisors of 6 are 1, 2, and 3.) A pair of amicable numbers constitutes an aliquot sequence of period 2. A related concept is that of a perfect number, which is a number that equals the sum of its own proper divisors, in other words a number which forms an aliquot sequence of period 1. Numbers that are members of an aliquot sequence with period greater than 2 are known as sociable numbers. The first three amicable pairs are: (220, 284), (1184, 1210), (2620, 2924). My code allow you to get some amicable numbers (I had successfully tested and get first 13 pair of amicable numbers below 90000). You can search for amicable numbers by your own with next code (search range is set to first 20000 by default and give you first 8 pair, they sum and also first 5 self-amicable numbers). https://code.sololearn.com/clZEJHVvjlde/#cpp

8th Feb 2018, 12:54 PM
Dmytro Kovryzhenko
Dmytro  Kovryzhenko - avatar
3 odpowiedzi
+ 13
thanks 4 the information //& I just just see what are amicable numbers 😃
8th Feb 2018, 2:43 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
thanks for sharing 👍 😃
8th Feb 2018, 1:08 PM
Vukan
Vukan - avatar
+ 2
That’s cool. Thanks for the info. (I’m curious about math stuff)
22nd May 2018, 11:30 AM
Wolverine88
Wolverine88 - avatar