If n = k = 1 ∑ 6 x k = k = 1 ∏ 6 x k for positive integers x 1 , x 2 , x 3 , . . . , x 6 , find n .
Bonus: Prove that there is a unique value for n .
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.
Great solution!
Interesting fact: there's also a unique value for n = k = 1 ∑ 2 4 x k = k = 1 ∏ 2 4 x k .
Log in to reply
For any N , the numbers x 1 = x 2 = ⋯ x N − 2 = 1 , x N − 1 = 2 , x N = N
satisfy k = 1 ∑ N x k = k = 1 ∏ N x k = 2 N
... but you're right that there's an interesting question around whether this value is unique for a given N . For example, with N = 5 , we can have
1 + 1 + 1 + 2 + 5 = 1 × 1 × 1 × 2 × 5 = 1 0 or 1 + 1 + 1 + 3 + 3 = 1 × 1 × 1 × 3 × 3 = 9 or 1 + 1 + 2 + 2 + 2 = 1 × 1 × 2 × 2 × 2 = 8
Log in to reply
Log in to reply
@Pi Han Goh – Oh, nice find! Thanks for sharing.
Log in to reply
@David Vreken – Another relevant OEIS - this lists the number of solutions for each N .
Fun (ridiculous) bonus fact: the number of distinct solutions to this problem with N variables is the number of syllables in the English name of the number N + 7 for 2 ≤ N ≤ 1 1 . Try it!
Log in to reply
@Chris Lewis – Ha! How on earth did you notice that?
Reminds me of another random fact I read about the other day: All odd numbers (written in English) have the letter "e" in it.
Log in to reply
@David Vreken – Awesome. I can't really take credit for the one here - I couldn't think of another way of finding the sequence than computing some solutions for small N ; OEIS suggested the syllable sequence might have been what I was looking for!
Simple python code to find the sum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Your script has the
break
function. This means that it will return the first true result. Your solution wouldn't print out all the solutions of
n
if
n
is not unique.
A bigger issue is: How do you know that all x i 's are less than 10?
Log in to reply
Well, I intentionally put the break because n is not unique. And about the bigger issue... As you can see, my solution is very naive it'll take a ridiculous amount of time as n gets bigger. I'm just lucky that n is not very big :')
Problem Loading...
Note Loading...
Set Loading...
It's easy enough to find 1 + 1 + 1 + 1 + 2 + 6 = 1 × 1 × 1 × 1 × 2 × 6 = 1 2 .
To prove this is the only possible n , let's try to find x 1 ≤ x 2 ≤ ⋯ ≤ x 6 satisfying the condition. Let S be their sum and P their product.
Now, if x 1 ≥ 2 , then P ≥ 2 ⋅ 2 ⋅ 2 ⋅ 2 ⋅ 2 ⋅ x 6 = 2 5 x 6 but S ≤ x 6 + x 6 + x 6 + x 6 + x 6 + x 6 = 6 x 6 This is impossible, so x 1 = 1 . Now try x 2 ≥ 2 : P ≥ 2 4 x 6 , S ≤ 6 x 6 so x 2 = 1 . The same thing works to show x 3 = 1 .
If we assume x 4 ≥ 2 , though, the same idea doesn't work; we get P ≥ 2 2 x 6 , S ≤ 6 x 6 which isn't a contradiction. However, we can show that x 4 < 3 this way.
We now know the set is either ( 1 , 1 , 1 , 1 , x 5 , x 6 ) or ( 1 , 1 , 1 , 2 , x 5 , x 6 ) . Put x 5 = a and x 6 = b (remember that a ≤ b ).
Case ( 1 , 1 , 1 , 2 , a , b ) : we have 5 + a + b 4 a b − 2 a − 2 b ( 2 a − 1 ) ( 2 b − 1 ) = 2 a b = 1 0 = 1 1
Since 1 1 is prime, one of the factors must be 1 , which would mean a = 1 or b = 1 ; but this contradicts x 4 ≤ x 5 ≤ x 6 .
So the only possibility is case ( 1 , 1 , 1 , 1 , a , b ) : now 4 + a + b a b − a − b ( a − 1 ) ( b − 1 ) = a b = 4 = 5
But this can only happen if a = 2 and b = 6 , proving the uniqueness of the solution.