title: Pizza Cut Problem Circle Division Lines
signature: pizza_cut_problem_circle_division_lines <- 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(
          46L, 
          1082L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          68L, 
          2347L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          4L, 
          11L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          12L, 
          79L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          56L, 
          1597L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          14L, 
          106L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          81L, 
          3322L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          29L, 
          436L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          26L, 
          352L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          40L, 
          821L
      )))
  
  }
  
  main()
source_py: def pizza_cut_problem_circle_division_lines(n):
      return int((1 + ((n * (n + 1)) / 2)))
source_cpp: int pizza_cut_problem_circle_division_lines(int n) {
    return 1 + n * ( n + 1 ) / 2;
  }