Ejemplo n.º 1
0
        public static bool Amicability(int n)
        {
            int a = MiscFunctions.ProperDivisors(n).Sum();

            if (a != n)
            {
                return(MiscFunctions.ProperDivisors(a).Sum() == n);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public static bool Abundant(int n)
 {
     return(MiscFunctions.ProperDivisors(n).Sum() > n);
 }