2003 Putnam

How many ways are there to write 1 0 5 10^5 as a sum of positive integers, 1 0 5 = a 1 + a 2 + + a k 10^5=a_1+a_2+\cdots +a_k with k being an arbitrary positive integer and a 1 a 2 a 1 + 1 a_1\leq a_2 \leq \cdots \leq a_1+1 ? For example, with n = 4 n=4 , there are four ways: 4 , 2 + 2 , 2 + 1 + 1 , 1 + 1 + 1 + 1 4,2+2,2+1+1,1+1+1+1 .


The answer is 100000.

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.

1 solution

Patrick Corn
Jan 15, 2021

Let n = 1 0 5 . n = 10^5. Every such representation consists of some copies (at least one) of a a and some copies (at least zero) of a + 1 , a+1, i.e. n = ( a + a + + a ) + ( ( a + 1 ) + ( a + 1 ) + + ( a + 1 ) . n = (a+a+\cdots+a)+((a+1)+(a+1)+\cdots+(a+1). If there are r r copies of a + 1 , a+1, this turns into n = k a + r , 0 r < k . n = ka+r, \ \ 0 \le r < k. Well, given any positive integer k n , k \le n, there is exactly one a a and r r that satisfy this equation, by the division algorithm . So the number of solutions is equal to the number of positive integers k n , k \le n, which is just n . n. In this case the answer is n = 100000 . n = \fbox{100000}.

(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 n ones.)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...