Match Sticks


The answer is 704.

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.

3 solutions

Chris Lewis
Oct 28, 2020

Let's try and solve the general case. Say there are M M matches in total, and we want to know the sum of the areas of the rectangles we can make with them with sides a < b a<b .

From the diagram, it's clear that M = a ( b + 1 ) + b ( a + 1 ) = 2 a b + a + b M=a(b+1)+b(a+1)=2ab+a+b

Doubling and adding one allows us to factorise: 2 M + 1 = 4 a b + 2 a + 2 b + 1 = ( 2 a + 1 ) ( 2 b + 1 ) 2M+1=4ab+2a+2b+1=(2a+1)(2b+1)

Now, the quantity we're after is S = a b S=\sum ab over all pairs a < b a<b satisfying ( 2 a + 1 ) ( 2 b + 1 ) = 2 M + 1 (2a+1)(2b+1)=2M+1 .

Note that, from the first equation, a b = 1 2 ( M a b ) ab=\frac12 (M-a-b) for these pairs; so the sum is S = 1 2 ( M a b ) = 1 4 ( 2 M + 2 ( 2 a + 1 ) ( 2 b + 1 ) ) S=\frac12 \sum (M-a-b)=\frac14 \sum \left(2M+2-(2a+1)-(2b+1)\right)

So we're interested in the number of divisors of 2 M + 1 2M+1 , and their sum; the first gives twice the number of solution pairs 2 a + 1 , 2 b + 1 2a+1,2b+1 , and the second their sum. These two functions are usually denoted σ 0 \sigma_0 and σ 1 \sigma_1 respectively.

If the prime factorisation of x x is x = p 1 k 1 p 2 k 2 p r k r x=p_1^{k_1} p_2^{k_2} \cdots p_r^{k_r}

then we have σ 0 ( x ) = ( 1 + k 1 ) ( 1 + k 2 ) ( 1 + k r ) \sigma_0(x)=\left(1+k_1 \right)\left(1+k_2 \right)\cdots \left(1+k_r \right) and σ 1 ( x ) = p 1 k 1 + 1 1 p 1 1 p 2 k 2 + 1 1 p 2 1 p 1 k r + 1 1 p r 1 \sigma_1(x)=\frac{p_1^{k_1+1}-1}{p_1-1} \cdot \frac{p_2^{k_2+1}-1}{p_2-1} \cdots \frac{p_1^{k_r+1}-1}{p_r-1}

Returning to our formula for S S , S = 1 4 ( 2 M + 2 ( 2 a + 1 ) ( 2 b + 1 ) ) = 1 4 [ ( M + 1 ) σ 0 ( 2 M + 1 ) σ 1 ( 2 M + 1 ) ] \begin{aligned} S&=\frac14 \sum \left(2M+2-(2a+1)-(2b+1) \right) \\ &=\frac14 \left[(M+1)\sigma_0(2M+1)-\sigma_1(2M+1) \right] \end{aligned}

Note we would have to be careful if 2 M + 1 2M+1 happened to be a square number (why?), but in this case, it's not.

In the question, M = 337 M=337 and 2 M + 1 = 675 = 3 3 5 2 2M+1=675=3^3 \cdot 5^2 . Using the above formulas, σ 0 ( 675 ) = 12 \sigma_0(675)=12 and σ 1 ( 675 ) = 1240 \sigma_1(675)=1240 , so S = 1 4 [ 338 12 1240 ] = 704 S=\frac14 \left[338 \cdot 12 - 1240 \right]=\boxed{704}

Hongqi Wang
Oct 28, 2020

a ( b + 1 ) + b ( a + 1 ) = 337 2 a b + a + b = 337 2 ( 2 a b + a + b ) + 1 = 2 × 337 + 1 ( 2 a + 1 ) ( 2 b + 1 ) = 675 = 3 3 × 5 2 a(b+1) + b(a+1) = 337 \\ \Rightarrow 2ab + a + b = 337 \\ \Rightarrow 2(2ab + a + b) + 1 = 2 \times 337 + 1 \\ \Rightarrow (2a + 1)(2b + 1) = 675 = 3^3 \times 5^2

2 a + 1 2a+1 2 b + 1 2b+1 a a b b a × b a \times b
3 225 1 112 112
5 135 2 67 134
9 75 4 37 148
15 45 7 22 154
25 27 12 13 156

S u m = 112 + 134 + 148 + 154 + 156 = 704 \therefore Sum = 112 + 134 + 148 + 154 + 156 \\ = 704

Bithiah Koshy
Oct 28, 2020

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...