How many ways are there to write as a sum of positive integers, with k being an arbitrary positive integer and ? For example, with , there are four ways: .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let n = 1 0 5 . Every such representation consists of some copies (at least one) of a and some copies (at least zero) of a + 1 , i.e. n = ( a + a + ⋯ + a ) + ( ( a + 1 ) + ( a + 1 ) + ⋯ + ( a + 1 ) . If there are r copies of a + 1 , this turns into n = k a + r , 0 ≤ r < k . Well, given any positive integer k ≤ n , there is exactly one a and r that satisfy this equation, by the division algorithm . So the number of solutions is equal to the number of positive integers k ≤ n , which is just n . In this case the answer is n = 1 0 0 0 0 0 .
(FYI: I edited the problem to specify a sum of positive integers, as otherwise we could have a sum of arbitrarily many zeroes and n ones.)