title: Sum Divisors 1 N 1
signature: class Solution {
  
      public Integer sumDivisors1N1(Integer n) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(73, 4406);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(41, 1384);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(36, 1098);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(28, 660);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(49, 1987);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(24, 491);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(85, 5977);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(59, 2846);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(82, 5561);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(40, 1342);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def sum_divisors_1_n_1(n):
      sum = 0
      for i in range(1, (n + 1)):
          sum += (int((n / i)) * i)
      return int(sum)
source_cpp: int sum_divisors_1_n_1(int n) {
    int sum = 0;
    for ( int i = 1;
    i <= n;
    ++ i ) sum += ( n / i ) * i;
    return sum;
  }