title: N Th Term Series 2 12 36 80 150
signature: fun nThTermSeries2123680150(n: Int): Int {
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 );
  }
question_info.test_list: [{"idx": 0, "outputs": 737100, "inputs": {"n": 90}}, {"idx": 1, "outputs": 866400, "inputs": {"n": 95}}, {"idx": 2, "outputs": 11132, "inputs": {"n": 22}}, {"idx": 3, "outputs": 25230, "inputs": {"n": 29}}, {"idx": 4, "outputs": 242172, "inputs": {"n": 62}}, {"idx": 5, "outputs": 65600, "inputs": {"n": 40}}, {"idx": 6, "outputs": 143312, "inputs": {"n": 52}}, {"idx": 7, "outputs": 9702, "inputs": {"n": 21}}, {"idx": 8, "outputs": 37026, "inputs": {"n": 33}}, {"idx": 9, "outputs": 1452, "inputs": {"n": 11}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(90, 737100)
      println("TEST-0...${result}")
      
      result = driver(95, 866400)
      println("TEST-1...${result}")
      
      result = driver(22, 11132)
      println("TEST-2...${result}")
      
      result = driver(29, 25230)
      println("TEST-3...${result}")
      
      result = driver(62, 242172)
      println("TEST-4...${result}")
      
      result = driver(40, 65600)
      println("TEST-5...${result}")
      
      result = driver(52, 143312)
      println("TEST-6...${result}")
      
      result = driver(21, 9702)
      println("TEST-7...${result}")
      
      result = driver(33, 37026)
      println("TEST-8...${result}")
      
      result = driver(11, 1452)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: nThTermSeries2123680150
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn