Pizza cut problem ( Or Circle Division by Lines ) | Function for finding maximum pieces with n cuts . ; Driver Code
function findMaximumPieces ( n ) { return 1 + n * ( n + 1 ) / 2 ; } document . write ( findMaximumPieces ( 3 ) ) ;