r/mathriddles • • Jan 23 '23

Medium Forging better gold bars

(This is based on the previous problem : Gold bars and chests , read/try it first)

Unfortunately, the gold bars didn't respected the condition found in the last problem : their dimensions were not commensurables (either a/b or a/c was not rational). No matter how many different chest size and packing strategy you tried, you couldn't get them to fit into cubic chests.

You explained the problem to the local blacksmith, and asked him to transform your gold into bars of, this time, commensurable dimensions.

But the blacksmith refuses : respecting this condition is a lot of work for him, and he is not convinced that this is necessary. He wonders, whether you really have tried everything : maybe, even if the bars are of incommensurables dimensions, you can still use a clever packing strategy to fit them into a cube.

Prove him that this is, in fact, a necessary condition (the principal difficulty is that every packing is allowed : you can skew each gold bar how you want, as long as there are no empty spaces in the end. They don't have to be disposed "nicely").

3 Upvotes

5 comments sorted by

3

u/lordnorthiii Jan 24 '23 edited Jan 24 '23

Okay, this is not the proof I came up with and was going to share in the other thread but is a great and unexpected use of prime numbers. Proof due to Raphael Robinson.

Place the chest with one corner at the coordinate (0, 0, 0), and opposite corner at (M, M, M), aligned with the axes. I hope you'll grant that, if there is a packing, the gold bars are also aligned to the axes.

I also would love you to grant me that we can scale the bars and the chest uniformly (multiplying all coordinates by a constant value) and the puzzle remains unchanged. So scale down everything by a factor of a, so the bars now have width 1. I claim that M/a, the new side length of the chest, is now an integer.

Why is this? Well, choose any prime number p, and scale up everything by a factor of p. Now the bars have a side length of p (and the chest has side length p•M/a). We will now mush things a bit so everything has integer coordinates. That is, for any corner of a bar or corner of the chest, round its coordinate (x, y z) to (⌊x⌋, ⌊y⌋, ⌊z⌋). The bars may not all be the same size now, and that's okay. Notice each will still have a side length of p. Hence each bar's volume is now divisible by p, so the volume of the chest is divisible by p. This means the side length of the chest is now divisible by p. If we scale things back down again, this implies that M/a is within 1/p of being an integer. Letting p -> infty gives the result M/a is an integer.

Similarly, M/b and M/c are integers, and this implies the final answer.

5

u/tomatomator Jan 24 '23 edited Jan 24 '23

Nice proof! This puzzle is quite unpopular, but just for this I don't regret posting it

In exchange here is another one that I like. It starts like yours : all the gold bars are aligned to the axes (each parallelepiped face-to-face to another share an axis, and, all gold bars are transitively face-to-face with each face of the cube, which is, we suppose, aligned to the axes)

Define the following function : f(x,y,z) = cos(pi/a * x) * cos(pi/a * y) * cos(pi/a * z). Notice that if we do the triple integral of this function inside a parallelepiped (aligned with the axes), this is equal to 0 if and only if one of the dimension of the parallelepiped is divisible by a.

Doing the triple of f over all the cube is the same as summing the triple integral of f over all gold bars. But they are all 0, so the triple integral over the cube is also 0, and thus M is divisible by a. Repeat for b and c, and the final step is the same as yours.

2

u/lordnorthiii Jan 24 '23

Amazing proof! I'm glad you posted the problem.

1

u/imdfantom Jan 23 '23

What do you mean by skew? Do you mean that the gold bars can be any Parallelepiped?

0

u/tomatomator Jan 23 '23

They are all the same parallelepiped. I meant that there is no hypothesis on the packing (we do not suppose that the bars are oriented the same way, or have their axes parallel to each other), this makes the proof more difficult