title: Number Non Negative Integral Solutions B C N 1
signature: fun numberNonNegativeIntegralSolutionsBCN1(n: Int): Int {
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(41, 903)
      println("TEST-0...${result}")
      
      result = driver(72, 2701)
      println("TEST-1...${result}")
      
      result = driver(54, 1540)
      println("TEST-2...${result}")
      
      result = driver(75, 2926)
      println("TEST-3...${result}")
      
      result = driver(87, 3916)
      println("TEST-4...${result}")
      
      result = driver(41, 903)
      println("TEST-5...${result}")
      
      result = driver(78, 3160)
      println("TEST-6...${result}")
      
      result = driver(80, 3321)
      println("TEST-7...${result}")
      
      result = driver(46, 1128)
      println("TEST-8...${result}")
      
      result = driver(9, 55)
      println("TEST-9...${result}")
      
          
  }
  
  main()
source_py: def number_non_negative_integral_solutions_b_c_n_1(n):
      return int((((n + 1) * (n + 2)) / 2))
source_cpp: int number_non_negative_integral_solutions_b_c_n_1(int n) {
    return ( ( n + 1 ) * ( n + 2 ) ) / 2;
  }