title: Sum Series 555555 N Terms
signature: func sumSeries555555NTerms(n int) int64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int64, expected int64) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, expected int64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(n),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(18, 617200000000000000)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(14, 61719999999991)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(15, 617199999999991)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(3, 614)
      fmt.Printf("TEST-3...%s\n", result)
      
          
  }
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;
  }