code for AmicableNumbers()