A hard but fascinating Math problem
April 5th, 2008 | by Sol |I ran into the following problem in a contest problem book. I won’t reveal the source until later. I was not able to solve this problem and even though the solution is in the back of the book so I know how to solve it now, I’d like to see if anyone can solve this in an elegant and intuitive way and maybe even show how the author might have invented this problem.
There’s no prize for solving this, but I will publish all solutions and give link love to all solvers, and I will give special kudos to anyone who can help me to see why the interesting property shown in this problem is true.
Here’s the problem:
Express an arbitrary positive integer n, as ordered sums of positive integers in 2^(n-1) ways. For example, if n=5, the 16 ordered sums are listed in the left column below:
5 2(=2)
4+1 2×1(=2)
1+4 1×2(=2)
3+2 2×3(=6)
2+3 3×2(=6)
3+1+1 2×1x1(=2)
1+3+1 1×2x1(=2)
1+1+3 1×1x2(=2)
2+2+1 3×3x1(=9)
2+1+2 3×1x3(=9)
1+2+2 1×3x3(=9)
2+1+1+1 3×1x1×1(=3)
1+2+1+1 1×3x1×1(=3)
1+1+2+1 1×1x3×1(=3)
1+1+1+2 1×1x1×3(=3)
1+1+!+1+1 1×1x1×1x1(=1)The entries in the right column are obtained from the corresponding entries in the left column by changing (a) additions to multiplications and (b) all the integers greater than or equal to 3 to 2, (c) 2 to 3, (d) 1 to 1 (i.e., keeping 1 unchanged).
Now add all the products in the right column. For n=5, we obtain
2+2+2+6+6+2+2+2+9+9+9+3+3+3+3+1=64=8^2
Prove or disprove: For every positive integer n, the sum of all the products in the right column is always a perfect square.
Send your solutions to sol dot lederman at gmail dot com.
If you enjoyed this post, make sure you subscribe to my RSS feed!
3 Responses to “A hard but fascinating Math problem”
By sam shah on Apr 5, 2008 | Reply
This is a frustrating (but good) problem! I hate that I know I’m over halfway to the solution but my brain is sloggy and doesn’t want to make that all important conceptual leap… Yargh.
By Florian on Apr 5, 2008 | Reply
Thanks for the great challenge!
My solution is based on finding
a recursion to derive the 2^(n-1)
ordered sums of n from those of n-1.
Based on this imtermediate result
I derived anoter recursion that
calculates sum of the products
in the right column.
But I’m not going to spoil your fun
here with the full solution. Just
a hint:
The sum of the products of the right
column equals the n-th Fibonacci
number suqared. The Fibonacci
sequence is 1,2,3,5,8,13,…
n => Sum of products in the right Column
1 => 1^2 = 1 a perfect square
2 => 2^2 = 4 a perfect square
3 => 3^2 = 9 a perfect square
4 => 5^2 = 25 a perfect square
5 => 8^2 = 64 a perfect square
…
By Sjoerd Visscher on Apr 7, 2008 | Reply
Some observations following Florian:
SP(n) = F(n+1)^2
SP(n) - SP(n-1) = F(n+1)^2 - F(n)^2 = (F(n+1) - F(n))(F(n+1) + F(n)) = F(n-1)F(n+2)
SP(2) - SP(1) = 4 - 1 = F(1)F(4) = 1 * 3 = 3
SP(3) - SP(2) = 9 - 4 = F(2)F(5) = 1 * 5 = 5
SP(4) - SP(3) = 25 - 9 = F(3)F(6) = 2 * 8 = 7 + 9
SP(5) - SP(4) = 64 - 25 = F(4)F(7) = 3 * 13 = 11 + 13 + 15
SP(6) - SP(5) = 169 - 64 = F(5)F(8) = 5 * 21 = 17 + 19 + 21 + 23 + 25
SP(7) - SP(6) = 441 - 169 = F(6)F(9) = 8 * 34 = 27 + 29 + 31 + 33 + 35 + 37 + 39 + 41
Notice that on the right you get all uneven numbers (as expected when looking at differences of squares).