返回题库

AIME 1996 · 第 14 题

AIME 1996 — Problem 14

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

A 150×324×375150\times 324\times 375 rectangular solid is made by gluing together 1×1×11\times 1\times 1 cubes. An internal diagonal of this solid passes through the interiors of how many of the 1×1×11\times 1\times 1 cubes?

解析

Solution

Solution 1

Place one corner of the solid at (0,0,0)(0,0,0) and let (a,b,c)(a,b,c) be the general coordinates of the diagonally opposite corner of the rectangle, where a,b,cZ+a, b, c \in \mathbb{Z_{+}}.

We consider the vector equation of the diagonal segment represented by: (x,y,z)=m(a,b,c)(x, y, z) =m (a, b, c), where mR,0<m1m \in \mathbb{R}, 0 < m \le 1.

Consider a point on the diagonal with coordinates (ma,mb,mc)(ma, mb, mc). We have 3 key observations as this point moves from (0,0,0)(0,0,0) towards (a,b,c)(a,b,c):

  1. When exactly one of mama, mbmb, mcmc becomes a positive integer, the point crosses one of the faces of a 1×1×11 \times 1 \times 1 cube from the outside to the inside of the cube.

  2. When exactly two of mama, mbmb, mcmc become positive integers, the point enters a new cube through one of the edges of the cube from the outside to the inside of the cube.

  3. When all three mama, mbmb, mcmc become positive integers, the point enters a cube through one of its vertices from the outside to the inside of the cube.

The number of cubes the diagonal passes is equal to the number of points on the diagonal that has one or more positive integers as coordinates.

If we slice the solid up by the xx-planes defined by x=1,2,3,4,,ax=1,2,3,4, \ldots, a, the diagonal will cut these xx-planes exactly aa times (plane of x=0x=0 is not considered since m0m \ne 0). Similar arguments for slices along yy-planes and zz-planes give diagonal cuts of bb, and cc times respectively. The total cuts by the diagonal is therefore a+b+ca+b+c, if we can ensure that no more than 11 positive integer is present in the x, y, or z coordinate in all points (ma,mb,mc)(ma,mb,mc) on the diagonal. Note that point (a,b,c)(a,b,c) is already one such exception.

But for each diagonal point (ma,mb,mc)(ma,mb,mc) with 2 (or more) positive integers occurring at the same time, a+b+ca+b+c counts the number of cube passes as 22 instead of 11 for each such point. There are gcd(a,b)+gcd(b,c)+gcd(c,a)\gcd(a,b)+\gcd(b,c)+\gcd(c,a) points in such over-counting. We therefore subtract one time such over-counting from a+b+ca+b+c.

And for each diagonal point (ma,mb,mc)(ma,mb,mc) with exactly 33 integers occurring at the same time, a+b+ca+b+c counts the number of cube passes as 33 instead of 11; ie a+b+ca+b+c over-counts each of such points by 22. But since gcd(a,b)+gcd(b,c)+gcd(c,a)\gcd(a,b)+\gcd(b,c)+\gcd(c,a) already subtracted three times for the case of 33 integers occurring at the same time (since there are 33 of these gcd terms that represent all combinations of 3 edges of a cube meeting at a vertex), we have the final count for each such point as 1=33+kk=11 = 3-3+k \Rightarrow k=1, where kk is our correction term. That is, we need to add k=1k=1 time gcd(a,b,c)\gcd(a,b,c) back to account for the case of 3 simultaneous integers.

Therefore, the total diagonal cube passes is: D=a+b+c[gcd(a,b)+gcd(b,c)+gcd(c,a)]+gcd(a,b,c)D = a+b+c-\left[ \gcd(a,b)+\gcd(b,c)+\gcd(c,a) \right]+\gcd(a,b,c).

For (a,b,c)=(150,324,375)(a,b,c) = (150, 324, 375), we have: gcd(150,324)=6\gcd(150,324)=6, gcd(324,375)=3\gcd(324,375)=3, gcd(150,375)=75\gcd(150,375)=75, gcd(150,324,375)=3\gcd(150,324,375)=3.

Therefore D=150+324+375(6+3+75)+3=768D = 150+324+375-(6+3+75)+3 = \boxed{768}.

Solution 2

Consider a point travelling across the internal diagonal, and let the internal diagonal have a length of dd. The point enters a new unit cube in the x,y,zx,y,z dimensions at multiples of d150,d324,d375\frac{d}{150}, \frac{d}{324}, \frac{d}{375} respectively. We proceed by using PIE.

The point enters a new cube in the xx dimension 150150 times, in the yy dimension 324324 times and in the zz dimension, 375375 times.

The point enters a new cube in the xx and yy dimensions whenever a multiple of d150\frac{d}{150} equals a multiple of d324\frac{d}{324}. This occurs gcd(150,324)\gcd(150, 324) times. Similarly, a point enters a new cube in the y,zy,z dimensions gcd(324,375)\gcd(324, 375) times and a point enters a new cube in the z,xz,x dimensions gcd(375,150)\gcd(375, 150) times.

The point enters a new cube in the x,yx,y and zz dimensions whenever some multiples of d150,d324,d375\frac{d}{150}, \frac{d}{324}, \frac{d}{375} are equal. This occurs gcd(150,324,375)\gcd(150, 324, 375) times.

The total number of unit cubes entered is then 150+324+375[gcd(150,324)+gcd(324,375)+gcd(375,150)]+gcd(150,324,375)=768150+324+375-[\gcd(150, 324)+\gcd(324, 375)+\gcd(375, 150)] + \gcd(150, 324, 375) = \boxed{768}