##
Count number of ways to divide a number in 4 parts
November 26, 2015

Given a positive integer n, find number of ways to divide n in four parts or represent n as sum of four positive integers. Here n varies from 0 to 5000. Examples: Input: n = 5 Output: 1 There is only one way (1, 1, 1, 2) Input: n = 6 Output: 2 There are… Read More »