Difference between revisions of "1996 AIME Problems/Problem 14"

(Solution)
m (Solution 2)
 
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
== Problem ==
 
== Problem ==
 +
A <math>150\times 324\times 375</math> [[rectangle|rectangular]] [[solid]] is made by gluing together <math>1\times 1\times 1</math> cubes. An internal [[diagonal]] of this solid passes through the interiors of how many of the <math>1\times 1\times 1</math> [[cube (geometry) | cube]]s?
  
 
== Solution ==
 
== Solution ==
 
+
=== Solution 1 ===
 
Place one corner of the solid at <math>(0,0,0)</math> and let <math>(a,b,c)</math> be the general coordinates of the diagonally opposite corner of the rectangle, where <math>a, b, c \in \mathbb{Z_{+}}</math>.
 
Place one corner of the solid at <math>(0,0,0)</math> and let <math>(a,b,c)</math> be the general coordinates of the diagonally opposite corner of the rectangle, where <math>a, b, c \in \mathbb{Z_{+}}</math>.
  
We consider the vector equation of the diagonal segment represented by:
+
We consider the [[vector]] equation of the diagonal segment represented by:
 
<math>(x, y, z) =m (a, b, c)</math>, where <math>m \in \mathbb{R}, 0 < m \le 1</math>.
 
<math>(x, y, z) =m (a, b, c)</math>, where <math>m \in \mathbb{R}, 0 < m \le 1</math>.
  
 
Consider a point on the diagonal with coordinates <math>(ma, mb, mc)</math>. We have 3 key observations as this point moves from <math>(0,0,0)</math> towards <math>(a,b,c)</math>:
 
Consider a point on the diagonal with coordinates <math>(ma, mb, mc)</math>. We have 3 key observations as this point moves from <math>(0,0,0)</math> towards <math>(a,b,c)</math>:
  
1. The point crosses one of the faces of a <math>1 \times 1 \times 1</math> cube from the outside to the inside of the cube, when exactly one of <math>ma</math>, <math>mb</math>, <math>mc</math> becomes a positive integer.
+
# When exactly one of <math>ma</math>, <math>mb</math>, <math>mc</math> becomes a positive integer, the point crosses one of the [[face]]s of a <math>1 \times 1 \times 1</math> cube from the outside to the inside of the cube.
 +
 
 +
# When exactly two of <math>ma</math>, <math>mb</math>, <math>mc</math> 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.
  
2. When exactly two of <math>ma</math>, <math>mb</math>, <math>mc</math> 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.
+
# When all three <math>ma</math>, <math>mb</math>, <math>mc</math> become positive integers, the point enters a cube through one of its vertices from the outside to the inside of the cube.
  
3. When all three <math>ma</math>, <math>mb</math>, <math>mc</math> 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.
 
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 <math>x</math>-planes defined by <math>x=1,2,3,4, \ldots, a</math>, the diagonal will cut these <math>x</math>-planes exactly <math>a</math> times (plane of <math>x=0</math> is not considered since <math>m \ne 0</math>). Similar arguments for slices along <math>y</math>-planes and <math>z</math>-planes give diagonal cuts of <math>b</math>, and <math>c</math> times respectively. The total cuts by the diagonal is therefore <math>a+b+c</math>, if we can ensure that no more than <math>1</math> positive integer is present in the x, y, or z coordinate in all points <math>(ma,mb,mc)</math> on the diagonal. Note that point <math>(a,b,c)</math> is already one such exception.
+
If we slice the solid up by the <math>x</math>-planes defined by <math>x=1,2,3,4, \ldots, a</math>, the diagonal will cut these <math>x</math>-planes exactly <math>a</math> times (plane of <math>x=0</math> is not considered since <math>m \ne 0</math>). Similar arguments for slices along <math>y</math>-planes and <math>z</math>-planes give diagonal cuts of <math>b</math>, and <math>c</math> times respectively. The total cuts by the diagonal is therefore <math>a+b+c</math>, if we can ensure that no more than <math>1</math> positive integer is present in the x, y, or z coordinate in all points <math>(ma,mb,mc)</math> on the diagonal. Note that point <math>(a,b,c)</math> is already one such exception.
  
But for each diagonal point <math>(ma,mb,mc)</math> with 2 (or more) positive integers occurring at the same time, <math>a+b+c</math> counts the number of cube passes as <math>2</math> instead of <math>1</math> for each such point.  There are <math>\gcd(a,b)+\gcd(b,c)+\gcd(c,a)</math> points in such over-counting. We therefore subtract one time such over-counting from <math>a+b+c</math>.
+
But for each diagonal point <math>(ma,mb,mc)</math> with 2 (or more) [[positive]] [[integer]]s occurring at the same time, <math>a+b+c</math> counts the number of cube passes as <math>2</math> instead of <math>1</math> for each such point.  There are <math>\gcd(a,b)+\gcd(b,c)+\gcd(c,a)</math> points in such over-counting. We therefore subtract one time such over-counting from <math>a+b+c</math>.
  
And for each diagonal point <math>(ma,mb,mc)</math> with exactly <math>3</math> integers occurring at the same time, <math>a+b+c</math> counts the number of cube passes as <math>3</math> instead of <math>1</math>; ie <math>a+b+c</math> over-counts each of such points by <math>2</math>. But since <math>\gcd(a,b)+\gcd(b,c)+\gcd(c,a)</math> already subtracted three times for the case of <math>3</math> integers occurring at the same time (since there are <math>3</math> of these gcd terms that represent 3 edges meeting at a vertex), we  have the final count for each such point as <math>1 = 3-3+k \Rightarrow k=1</math>, where <math>k</math> is our correction term. That is, we need to add <math>k=1</math> time <math>\gcd(a,b,c)</math> back to account for the case of 3 simultaneous integers.
+
And for each diagonal point <math>(ma,mb,mc)</math> with exactly <math>3</math> integers occurring at the same time, <math>a+b+c</math> counts the number of cube passes as <math>3</math> instead of <math>1</math>; ie <math>a+b+c</math> over-counts each of such points by <math>2</math>. But since <math>\gcd(a,b)+\gcd(b,c)+\gcd(c,a)</math> already subtracted three times for the case of <math>3</math> integers occurring at the same time (since there are <math>3</math> 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 <math>1 = 3-3+k \Rightarrow k=1</math>, where <math>k</math> is our correction term. That is, we need to add <math>k=1</math> time <math>\gcd(a,b,c)</math> back to account for the case of 3 simultaneous integers.
  
 
Therefore, the total diagonal cube passes is:
 
Therefore, the total diagonal cube passes is:
Line 34: Line 36:
  
 
Therefore
 
Therefore
<math>D = 150+324+375-(6+3+75)+3 = 768</math>.
+
<math>D = 150+324+375-(6+3+75)+3 = \boxed{768}</math>.
 +
 
 +
=== Solution 2 ===
 +
Consider a point travelling across the internal diagonal, and let the internal diagonal have a length of <math>d</math>. The point enters a new unit cube in the <math>x,y,z</math> dimensions at multiples of <math>\frac{d}{150}, \frac{d}{324}, \frac{d}{375}</math> respectively. We proceed by using PIE.
 +
 
 +
The point enters a new cube in the <math>x</math> dimension <math>150</math> times, in the <math>y</math> dimension <math>324</math> times and in the <math>z</math> dimension, <math>375</math> times.
 +
 
 +
The point enters a new cube in the <math>x</math> and <math>y</math> dimensions whenever a multiple of <math>\frac{d}{150}</math> equals a multiple of <math>\frac{d}{324}</math>. This occurs <math>\gcd(150, 324)</math> times. Similarly, a point enters a new cube in the <math>y,z</math> dimensions <math>\gcd(324, 375)</math> times and a point enters a new cube in the <math>z,x</math> dimensions <math>\gcd(375, 150)</math> times.
 +
 
 +
The point enters a new cube in the <math>x,y</math> and <math>z</math> dimensions whenever some multiples of <math>\frac{d}{150}, \frac{d}{324}, \frac{d}{375}</math> are equal. This occurs <math>\gcd(150, 324, 375)</math> times.
 +
 
 +
The total number of unit cubes entered is then
 +
<math>150+324+375-[\gcd(150, 324)+\gcd(324, 375)+\gcd(375, 150)] + \gcd(150, 324, 375) = \boxed{768}</math>
  
 
== See also ==
 
== See also ==
* [[1996 AIME Problems]]
+
{{AIME box|year=1996|num-b=13|num-a=15}}
 +
 
 +
[[Category:Intermediate Geometry Problems]]
 +
[[Category:Intermediate Number Theory Problems]]
 +
{{MAA Notice}}

Latest revision as of 20:21, 22 September 2023

Problem

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

Solution

Solution 1

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

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

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

  1. When exactly one of $ma$, $mb$, $mc$ becomes a positive integer, the point crosses one of the faces of a $1 \times 1 \times 1$ cube from the outside to the inside of the cube.
  1. When exactly two of $ma$, $mb$, $mc$ 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.
  1. When all three $ma$, $mb$, $mc$ 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 $x$-planes defined by $x=1,2,3,4, \ldots, a$, the diagonal will cut these $x$-planes exactly $a$ times (plane of $x=0$ is not considered since $m \ne 0$). Similar arguments for slices along $y$-planes and $z$-planes give diagonal cuts of $b$, and $c$ times respectively. The total cuts by the diagonal is therefore $a+b+c$, if we can ensure that no more than $1$ positive integer is present in the x, y, or z coordinate in all points $(ma,mb,mc)$ on the diagonal. Note that point $(a,b,c)$ is already one such exception.

But for each diagonal point $(ma,mb,mc)$ with 2 (or more) positive integers occurring at the same time, $a+b+c$ counts the number of cube passes as $2$ instead of $1$ for each such point. There are $\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+c$.

And for each diagonal point $(ma,mb,mc)$ with exactly $3$ integers occurring at the same time, $a+b+c$ counts the number of cube passes as $3$ instead of $1$; ie $a+b+c$ over-counts each of such points by $2$. But since $\gcd(a,b)+\gcd(b,c)+\gcd(c,a)$ already subtracted three times for the case of $3$ integers occurring at the same time (since there are $3$ 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 = 3-3+k \Rightarrow k=1$, where $k$ is our correction term. That is, we need to add $k=1$ time $\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-\left[ \gcd(a,b)+\gcd(b,c)+\gcd(c,a) \right]+\gcd(a,b,c)$.

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

Therefore $D = 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 $d$. The point enters a new unit cube in the $x,y,z$ dimensions at multiples of $\frac{d}{150}, \frac{d}{324}, \frac{d}{375}$ respectively. We proceed by using PIE.

The point enters a new cube in the $x$ dimension $150$ times, in the $y$ dimension $324$ times and in the $z$ dimension, $375$ times.

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

The point enters a new cube in the $x,y$ and $z$ dimensions whenever some multiples of $\frac{d}{150}, \frac{d}{324}, \frac{d}{375}$ are equal. This occurs $\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) = \boxed{768}$

See also

1996 AIME (ProblemsAnswer KeyResources)
Preceded by
Problem 13
Followed by
Problem 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png