Number of non | Returns count of solutions of a + b + c = n ; Driver code
function countIntegralSolutions ( n ) { return Math . floor ( ( ( n + 1 ) * ( n + 2 ) ) / 2 ) ; } let n = 3 ; document . write ( countIntegralSolutions ( n ) ) ;