title: Sum Series 555555 N Terms
signature: class Solution {
  
      public Long sumSeries555555NTerms(Integer n) {
source_py: def sum_series_555555_n_terms(n):
      return int(((0.6172 * (pow(10, n) - 1)) - (0.55 * n)))
source_cpp: int sum_series_555555_n_terms(int n) {
    return 0.6172 * ( pow ( 10, n ) - 1 ) - 0.55 * n;
  }
question_info.extension: java
question_info.entry_fn_name: sumSeries555555NTerms
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 617200000000000000, "inputs": {"n": 18}}, {"idx": 1, "outputs": 61719999999991, "inputs": {"n": 14}}, {"idx": 2, "outputs": 617199999999991, "inputs": {"n": 15}}, {"idx": 3, "outputs": 614, "inputs": {"n": 3}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Long 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(18, 617200000000000000L);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(14, 61719999999991L);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(15, 617199999999991L);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(3, 614L);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Long expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Long actual, Long expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3
question_info.commands: java __FILENAME__