Let D ( n ) be the number of ways of adding distinct positive integers to sum to n .
Let O ( n ) be the number of ways of adding odd positive integers to sum to n .
Let D = D ( 2 0 1 6 ) and O = O ( 2 0 1 6 ) .
Which is bigger?
Examples
5 = 5 = 2 + 3 = 1 + 4
4 = 1 + 1 + 1 + 1 = 1 + 3
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.
Can any one think of a nice way how to explicitly show the bijection between each partition of
D ( n ) with O ( n ) ?
For example if there a natural way to pair each of the sums in D ( 5 ) and O ( 5 ) ,
5 = 1 + 4 = 2 + 3 = 5
5 = 1 + 1 + 1 + 1 + 1 = 1 + 1 + 3 = 5
Can anyone come up with an algorithm of how to pair these together for all n ?
Let me know :)
Log in to reply
Take any partition a of N into distinct numbers: N = a 1 + a 2 + ⋯ + a n , and write each a j as a power of 2 times an odd number: a j = 2 m j b j , 1 ≤ j ≤ n . Let S be the collection of all odd numbers that appear in the above: S = { b j ∣ ∣ 1 ≤ j ≤ n } . For each m ∈ S , add together all the coefficients of m that can be found: k m = j : b j = m ∑ 2 m j , then the partition f ( a ) of N consisting of k m copies of m for each m ∈ S is an odd partition of N .
Since the partition a consists of distinct numbers, no two of the powers of 2 which are added together to calculate k m are equal (otherwise there would be distinct i and j with b i = b j and m i = m j , and hence a i = a j ). This means that the constituent m j which combine to form each k m can be retrieved from each number k m (by expressing k m in binary). Hence the function f is an injective map from the distinct partitions of N to the odd partititions of N .
It is a simple exercise to see that f is also surjective, and hence is bijective.
Log in to reply
Mark, this is great :). I'm not 100% sure on the notation you used but I think this is the gist of what you're saying (please correct me if I've misunderstood!):
For each a j = 2 m j b j in the distinct partition turn it into m j copies of b j and this will make a partition of just odd partitions!
Explicitly, going from the distinct partitions to the odd partitions of 5 we get the following correspondence 5 1 + 4 2 + 3 → 5 → 1 + 1 + 1 + 1 + 1 → 1 + 1 + 3 To show that its a bijection we could just show what the inverse process is (this is usually ver illuminating!). It's not immediately obvious to me what this is explicitly, so I'll have a little think and post any thoughts here later.
Log in to reply
@Roberto Nicolaides – ... 2 m j copies of b j ... and you have it.
To show surjectivity, suppose your odd partition has 1 3 copies of 7 . Write 1 3 = 8 + 4 + 1 in binary. These copies of 7 contribute 8 × 7 = 5 6 , 4 × 7 = 2 8 and 1 × 7 = 7 to the distinct partition that maps to it...
Problem Loading...
Note Loading...
Set Loading...
It turns out that D ( n ) = O ( n ) for all n ∈ N !
I saw a wonderful proof of this using generating functions that I'll re-interpret here.
Let's prove this surprising result using generating functions!
Let
o ( x ) = o 1 + o 2 x 2 + o 3 x 3 + . . . + o n x n + . . .
where we define o n to be O ( n ) .
Similarly we let
d ( x ) = d 1 + d 2 x 2 + d 3 x 3 + . . . + d n x n + . . .
where we define d n to be D ( n ) .
We'll reinterpret these two power series.
We must have
o ( x ) = ( 1 + x + x 2 + x 3 + x 4 + . . . ) ( 1 + x 3 + x 6 + x 9 + x 1 2 + . . . ) ( 1 + x 5 + x 1 0 + x 1 5 . . . ) . . .
since we can create the bijection between expanding out these brackets term by term and by choosing how many of each odd integer we choose to sum.
To see this we can think of each term in the the first bracket ( 1 + x + x 2 + x 3 + x 4 + . . . ) as representing how many 1 s we put into a given summation and similarly ( 1 + x 3 + x 6 + x 9 + x 1 2 + . . . ) as how many 3 s we put into a given summation. For example the sum 5 = 1 + 1 + 3 corresponds to picking x 2 out of the first bracket and x 3 out of the second.
Since the exponents will sum when we multiply the terms in the expansion we see that x n must occur exactly the same amount of ways we can sum n using odd numbers!
Now let's look at d ( x ) in another way!
d ( x ) = ( 1 + x ) ( 1 + x 2 ) ( 1 + x 3 ) . . . ( 1 + x n ) . . .
I won't fill in the details here of why this is true but hopefully with a little thought of how we re-interpreted o ( x ) we can see why this is true.
But now we see that
\begin{aligned} d(x) &= (1+x)(1+x^2)(1+x^3)...(1+x^n)...\\ &\text{but since \$x^{2m}-1 = (x^m-1)(x^m+1) \implies(x^m+1) = \frac{x^{2m} - 1}{x^m-1}\$ we have}\\ &= \frac{x^2-1}{x-1} \frac{x^4-1}{x^2-1} \frac{x^6-1}{x^3-1} ...\\ &\text{cancelling out even powered terms gives us }\\ &= \frac{\color{#D61F06}{x^2-1}}{x-1} \frac{\color{#3D99F6}{x^4-1}}{\color{#D61F06}{x^2-1}} \frac{\color{#20A900}{x^6-1}}{x^3-1}\frac{\color{#69047E}{x^8-1} }{\color{#3D99F6}{x^4-1}}...\\ &=\frac{1}{1-x} \frac{1}{1-x^3} \frac{1}{1-x^5} ... \\ &= o(x) \end{aligned}
So they are equal and hence their co-coefficients are respectively equal.
So O ( n ) = D ( n ) for all n ∈ N therefore O ( 2 0 1 6 ) = D ( 2 0 1 6 ) .