Six Sum Product Equality

If n = k = 1 6 x k = k = 1 6 x k \displaystyle n = \sum_{k=1}^{6} x_k = \prod_{k=1}^{6} x_k for positive integers x 1 , x 2 , x 3 , . . . , x 6 x_1, x_2, x_3, ... , x_6 , find n n .

Bonus: Prove that there is a unique value for n n .


The answer is 12.

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.

2 solutions

Chris Lewis
Mar 31, 2021

It's easy enough to find 1 + 1 + 1 + 1 + 2 + 6 = 1 × 1 × 1 × 1 × 2 × 6 = 12 1+1+1+1+2+6=1\times1\times1\times1\times2\times6=\boxed{12} .

To prove this is the only possible n n , let's try to find x 1 x 2 x 6 x_1 \le x_2 \le \cdots \le x_6 satisfying the condition. Let S S be their sum and P P their product.

Now, if x 1 2 x_1\ge 2 , then P 2 2 2 2 2 x 6 = 2 5 x 6 P \ge 2\cdot 2\cdot 2\cdot 2\cdot 2\cdot x_6 = 2^5 x_6 but S x 6 + x 6 + x 6 + x 6 + x 6 + x 6 = 6 x 6 S \le x_6+x_6+x_6+x_6+x_6+x_6 = 6x_6 This is impossible, so x 1 = 1 x_1=1 . Now try x 2 2 x_2\ge 2 : P 2 4 x 6 , S 6 x 6 P\ge 2^4 x_6,\;\;\;S\le 6x_6 so x 2 = 1 x_2=1 . The same thing works to show x 3 = 1 x_3=1 .

If we assume x 4 2 x_4\ge2 , though, the same idea doesn't work; we get P 2 2 x 6 , S 6 x 6 P\ge 2^2 x_6,\;\;\;S\le 6x_6 which isn't a contradiction. However, we can show that x 4 < 3 x_4 <3 this way.

We now know the set is either ( 1 , 1 , 1 , 1 , x 5 , x 6 ) \left(1,1,1,1,x_5,x_6 \right) or ( 1 , 1 , 1 , 2 , x 5 , x 6 ) \left(1,1,1,2,x_5,x_6\right) . Put x 5 = a x_5=a and x 6 = b x_6=b (remember that a b a \le b ).

Case ( 1 , 1 , 1 , 2 , a , b ) (1,1,1,2,a,b) : we have 5 + a + b = 2 a b 4 a b 2 a 2 b = 10 ( 2 a 1 ) ( 2 b 1 ) = 11 \begin{aligned} 5+a+b &=2ab \\ 4a b - 2a - 2b &= 10 \\ (2a-1)(2b-1) &= 11 \end{aligned}

Since 11 11 is prime, one of the factors must be 1 1 , which would mean a = 1 a=1 or b = 1 b=1 ; but this contradicts x 4 x 5 x 6 x_4 \le x_5 \le x_6 .

So the only possibility is case ( 1 , 1 , 1 , 1 , a , b ) (1,1,1,1,a,b) : now 4 + a + b = a b a b a b = 4 ( a 1 ) ( b 1 ) = 5 \begin{aligned} 4+a+b &=ab \\ a b - a - b &= 4 \\ (a-1)(b-1) &= 5 \end{aligned}

But this can only happen if a = 2 a=2 and b = 6 b=6 , proving the uniqueness of the solution.

Great solution!

Interesting fact: there's also a unique value for n = k = 1 24 x k = k = 1 24 x k \displaystyle n = \sum_{k=1}^{24} x_k = \prod_{k=1}^{24} x_k .

David Vreken - 2 months, 1 week ago

Log in to reply

For any N N , the numbers x 1 = x 2 = x N 2 = 1 , x N 1 = 2 , x N = N x_1=x_2=\cdots x_{N-2}=1,\;\;\;x_{N-1}=2,\;\;\;x_N=N

satisfy k = 1 N x k = k = 1 N x k = 2 N \sum_{k=1}^N x_k = \prod_{k=1}^N x_k = 2N

... but you're right that there's an interesting question around whether this value is unique for a given N N . For example, with N = 5 N=5 , we can have

1 + 1 + 1 + 2 + 5 = 1 × 1 × 1 × 2 × 5 = 10 1+1+1+2+5=1\times1\times1\times2\times5=10 or 1 + 1 + 1 + 3 + 3 = 1 × 1 × 1 × 3 × 3 = 9 1+1+1+3+3=1\times1\times1\times3\times3=9 or 1 + 1 + 2 + 2 + 2 = 1 × 1 × 2 × 2 × 2 = 8 1+1+2+2+2=1\times1\times2\times2\times2=8

Chris Lewis - 2 months, 1 week ago

Log in to reply

Relevant OEIS

Pi Han Goh - 2 months, 1 week ago

Log in to reply

@Pi Han Goh Oh, nice find! Thanks for sharing.

David Vreken - 2 months, 1 week ago

Log in to reply

@David Vreken Another relevant OEIS - this lists the number of solutions for each N N .

Fun (ridiculous) bonus fact: the number of distinct solutions to this problem with N N variables is the number of syllables in the English name of the number N + 7 N+7 for 2 N 11 2 \le N \le 11 . Try it!

Chris Lewis - 2 months, 1 week ago

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.

David Vreken - 2 months, 1 week ago

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 N ; OEIS suggested the syllable sequence might have been what I was looking for!

Chris Lewis - 2 months, 1 week ago
Abir Hasan
Apr 6, 2021

Simple python code to find the sum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
def find_six_sum(n):
    for a in range(1, n):
        for b in range(1, n):
            for c in range(1, n):
                for d in range(1, n):
                    for e in range(1, n):
                        for f in range(1, n):
                            s = a + b + c + d + e + f
                            p = a * b * c * d * e * f
                            if s == p:
                                print( a, b, c, d, e, f)
                                return

find_six_sum(10)

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 n if n n is not unique.

A bigger issue is: How do you know that all x i x_i 's are less than 10?

Pi Han Goh - 2 months, 1 week ago

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 :')

Abir Hasan - 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...