title: Sum Series 555555 N Terms
signature: sum_series_555555_n_terms <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          18L, 
          617200000000000000L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          14L, 
          61719999999991L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          15L, 
          617199999999991L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          3L, 
          614L
      )))
  
  }
  
  main()
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;
  }