Solution of the Week #430 - 1x1x1 Rubik's Cube

The perhaps surprising answer is that every scramble can be solved in at most TWO adjacent colour swaps. The way I approached it was to separate the scrambles into three possible cases, based on the number of opposite pairs present in the scramble. This can be 0, 1 or 3. There can’t be exactly two opposite pairs present because if there were, the third opposite pair would also be there!

Of the 30 possible distinct cube arrangements, 16 are of the ‘no opposite pairs’ type, 12 have exactly one opposite pair and 2 have all three opposite pairs.

When there are three opposite pairs, you either already have the solved state or a complete mirror image of the solved state. For the mirror image you can just swap the blue and white, and the green and yellow, for instance, and you have solved the cube.

For the case where there is one opposite pair, let’s assume without loss of generality that the red and orange are opposite, but that green-blue and white-yellow are not. Looking at the RWB vertex, either it is already clockwise, in which case swapping GY will solve the cube, or RWB is anti-clockwise, in which case swapping WB will solve the cube. If Blue and White are opposite, then the RWB vertex won’t exist, but the RBY vertex will, and the same situation arises. So for the 1 opposite pair case, one swap is always enough.

For the case where none of the opposite pairs start off opposite, if you swap any one side so that it IS opposite its partner, for instance by swapping the Orange to the position opposite the Red, and you will reduce to the case where there is exactly one opposite pair present (the RO pair), and as we have already seen, that case can always be solved in just one move.

QED.

 

Solution of the Week #426 - House Numbers

The sum of the first n odd numbers is simply n^2. If I live at the kth house (ie house number 2k-1) then the houses to the left of it add to (k-1)^2. For example if I lived at number 7 (the fourth odd number) 1+3+5 is equal to 3^2 = 9.

For the houses to the right, if there are n houses altogether then we will have n^2 – k^2. This needs to be equal to (k-1)^2.

Effectively then, we are looking for two consecutive square numbers (k-1)^2 and k^2, which sum to another square number n^2.

Solutions exist when k is 1, 4, 21, 120, 697 etc. Only one of these corresponds to a three digit house number. The 120th odd number is 239. Therefore I live at number 239 in a street with houses up to number 337. House numbers either side of me add up to 14161.

Solution of the Week #425 - Trisected

Consider a simplified generalised version of the figure as below, scaling the figure down by a factor of 15 and letting the 33 be an unknown value for the time being.

From the angle bisector theorem, AB/BD = AF/FD. I’ve called the length of BD ‘a’ hence AB = ax.

ABD is a right-angled triangle, so by Pythagoras we have a^2+(ax)^2=(x+1)^2

a^2(x^2+1)=(x+1)^2

a^2=((x+1)^2)/(x^2+1)

We’ll also use the fact that triangle ABD is similar to triangle BDE, since they share the angle at D and they both have a right angle.

h/a=ax/(x+1)

h=xa^2/(x+1)

But we have another expression for a^2 above, so let’s use that:

h=x(x+1)/(x^2+1)

Now, here’s the clever step. We could have gone through the exact same steps from the right-hand side instead, and found a value for h in terms of y, and we would have ended up with the exact same expression. So it’s also true that:

h=y(y+1)/(y^2+1)

Now, returning to the specific puzzle, we’ll keep the DF=1, but now allow x=33/15, so we just have a scaled down version of the real puzzle.

Plugging x=33/15 into the expression gives us h=88/73.

88/73=y(y+1)/(y^2+1)

Cross-multiplying and multiplying out we get the quadratic:

15y^2-73y+88=0

This has the two solutions 33/15 and 40/15. We already knew about 33/15 as that was the value of x that we plugged in. So y=40/15.

Rescaling so that FD is once again equal to 15, we find that the missing value from the puzzle is 40.

There is arithmetically an easier method but it’s harder to see how it’s justified or why it works. And that is that the locus of points that are a constant ratio from C and F respectively is a circle whose diameter is AD. Once you know that, calculating the missing length is relatively straightforward.

?/15 = (?+48)/33

33? = 15? = 720

18? = 720

? = 40.

Solution of the Week #421 - Odd Prime Balance

The lowest solution is achieved when T is 6 and U is 24. To find the values of V to Z, just choose the lowest number for which p, p+6 and p+24 are all prime, then the next lowest without overlapping, etc. So, our V to Z are 5, 7, 17, 37 and 47.

 

Our A to O will then be:

A = 5

B = 7+6 = 13

C = 17+24 = 41

D = 37

E = 47+6 = 53

F = 5+24 = 29

G = 7

H = 17+6 = 23

I = 37+24 = 61

J = 47

K = 5+6 = 11

L = 7+24 = 31

M = 17

N = 37+6 = 43

O = 47+24 = 71

 

Giving a total of 489, using 15 of the first 20 prime numbers.

Thanks to Graham Holmes for finding this optimal solution.

 

Solution of the Week #419 - Minimum Triangle

It is tempting to think that the triangle would need to be Pythagorean. Certainly for any Pythagorean triangle, the values of a and b would be whole numbers, and c would be a rational number. Suitably scaled up, this too can become a whole number. For instance, if we started with a 3-4-5 triangle, a would be 2 and b would be 3. c would work out to be 2.4. Scaling everything by 5 would give a solution of (10,15,12) with a total of 37. This is not however the minimum solution.

It's a nice little fact that the area of such a triangle is simply a*b. It’s simple enough to prove with a bit of algebra; I’ll leave it to the reader to try it. And if you find a nice geometric proof, let me know as thus far one has eluded me!

That being the case, (a+b)*c/2, the standard way of finding the area, must be equal to a*b. Rearranging, we need to find two numbers a and b such that their product divided by their sum is either a whole number or a half number. The first such pair is 2 and 6, yielding the minimum solution of (2,6,3). The area is 12, which is both 2*6 and (2+6)*3/2. So the answer is 11. The resulting triangle is certainly not Pythagorean, having sides (2*sqrt(7)-2, 2*sqrt(7)+2,8).

 

Solution of the Week #416 - 2023 Rectangle Ratio

The first thing to notice is that the area given for the square is not a square number. Since ultimately we are only interested in the ratio of sides of the rectangle, we should have no problem scaling up the figure so that it is. Since 3375 = 3^3 * 5^3, if we multiply this (and the rectangle area) by 15, we will get a square number. The side of the square will then be 225, and the new rectangle area will be 2023*15 = 30345.

The other dimensions in the figure below are related to one another by Pythagoras and similar triangles.

120 + 105 = 225

255 * 119 = 30345

225^2 + 120^2 = 255^2

255/225 = 119/105

Since all those are satisfied, these must be the correct dimensions. Therefore the ratio of the rectangle’s sides is 255/119, which is 15/7.

Solution of the Week #414 - Mystery Sequence

Each number is the lowest number that hasn’t yet appeared in the sequence, that begins with the last letter of the previous number.

 ONE – EIGHT – TWO – ONE HUNDRED – DECILLION – NINE – ELEVEN – NINETEEN - NINETY

 No numbers begin with ‘y’.

 I realise I’ve been a little inconsistent with names of numbers, allowing 100 to be called ‘one hundred’ but 10^33 as merely ‘decillion’ not ‘one decillion’ but that was the only way!

 

Solution of the Week #413 - Interior Point

Since the lines meet the edges of the square at the midpoints, we can divide the square into pairs of triangles with identical areas as below.

From the puzzle a+b=33, c+d=39, therefore the entire square, 2(a+b+c+d)=144, so the square is 12x12 and the base length of each of the eight triangles is 6. Because it is a square we also know that the a and c triangles make up half the area, and the b and d triangles make up the other. So a+c=b+d=36.

With all of this information we can determine the values of the individual areas to be a=12, b=21, c=24, d=15.

Looking only at the areas a and d will pinpoint the coordinates of the interior point (4,5).

 

Solution of the Week #411 - Best Remakes

Winner 1930, nominated 2022: All Quiet on the Western Front

Winner 1961, nominated 2021: West Side Story

Nominated 1933 and 2019: Little Women

Nominated 1937 and 2018: A Star Is Born

Nominated 1935 and 2012: Les Miserables

Nominated 1952 and 2001: Moulin Rouge

Nominated 1943 and 1978: Heaven Can Wait

Nominated 1936 and 1968: Romeo and Juliet

Nominated 1934 and 1963: Cleopatra

Winner 1935, nominated 1962: Mutiny on the Bounty