Amicable numbers and their distribution