title: N Th Term Series 2 12 36 80 150
signature: function nThTermSeries2123680150($n) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($n, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($n), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        90, 
        737100));
      
      printf("TEST-1...%s\n",driver(
        95, 
        866400));
      
      printf("TEST-2...%s\n",driver(
        22, 
        11132));
      
      printf("TEST-3...%s\n",driver(
        29, 
        25230));
      
      printf("TEST-4...%s\n",driver(
        62, 
        242172));
      
      printf("TEST-5...%s\n",driver(
        40, 
        65600));
      
      printf("TEST-6...%s\n",driver(
        52, 
        143312));
      
      printf("TEST-7...%s\n",driver(
        21, 
        9702));
      
      printf("TEST-8...%s\n",driver(
        33, 
        37026));
      
      printf("TEST-9...%s\n",driver(
        11, 
        1452));
      
  }
  
  main();
  ?>
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 );
  }