title: Number Non Negative Integral Solutions B C N 1
signature: number_non_negative_integral_solutions_b_c_n_1 <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          41L, 
          903L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          72L, 
          2701L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          54L, 
          1540L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          75L, 
          2926L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          87L, 
          3916L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          41L, 
          903L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          78L, 
          3160L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          80L, 
          3321L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          46L, 
          1128L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          9L, 
          55L
      )))
  
  }
  
  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;
  }