title: N Th Term Series 2 12 36 80 150
signature: func nThTermSeries2123680150(n int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, expected int) 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(90, 737100)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(95, 866400)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(22, 11132)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(29, 25230)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(62, 242172)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(40, 65600)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(52, 143312)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(21, 9702)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(33, 37026)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(11, 1452)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def n_th_term_series_2_12_36_80_150(n):
      return ((n * n) + ((n * n) * n))
source_cpp: int n_th_term_series_2_12_36_80_150(int n) {
    return ( n * n ) + ( n * n * n );
  }