title: Number Non Negative Integral Solutions B C N 1
signature: function numberNonNegativeIntegralSolutionsBCN1(n) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(41, 903);
    console.log(`TEST-0...${result}`);
  
    result = driver(72, 2701);
    console.log(`TEST-1...${result}`);
  
    result = driver(54, 1540);
    console.log(`TEST-2...${result}`);
  
    result = driver(75, 2926);
    console.log(`TEST-3...${result}`);
  
    result = driver(87, 3916);
    console.log(`TEST-4...${result}`);
  
    result = driver(41, 903);
    console.log(`TEST-5...${result}`);
  
    result = driver(78, 3160);
    console.log(`TEST-6...${result}`);
  
    result = driver(80, 3321);
    console.log(`TEST-7...${result}`);
  
    result = driver(46, 1128);
    console.log(`TEST-8...${result}`);
  
    result = driver(9, 55);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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;
  }