AMC 10 Step by Step

2016 AMC 10B Problem 14

P11-15~5 minPrint

How many squares whose sides are parallel to the axis and whose vertices have coordinates that are integers lie entirely within the region bounded by the line y=πxy=\pi x , the line y=−0.1y=-0.1 and the line x=5.1?x=5.1?

Log in to save your progress.
Show solution without answering

Key insight

The line y = pi x slopes up, so a square can only cross it at its top-left corner. Check that corner, then count squares by side length.

Solution

Understand the region. It is a triangle: to the right of and below the line y=πxy = \pi x, above y=−0.1y = -0.1, and left of x=5.1x = 5.1. Corners must have whole-number coordinates, so "above −0.1-0.1" just means y≥0y \ge 0, and "left of 5.15.1" just means x≤5x \le 5.

Which corner can cross the line? The line goes up as it goes right, so the region is widest at the right. For a square, the corner closest to the line is the top-left one. If that corner is on or below the line, the whole square is.

Set up the count. Name a square by its bottom-left corner (a,b)(a, b) and side ss. Its top-left corner is (a,b+s)(a, b + s). The square fits when:

  • b≥0b \ge 0 (bottom edge not below the xx-axis),
  • a+s≤5a + s \le 5 (right edge not past x=5x = 5),
  • b+s≤πab + s \le \pi a (top-left corner not above the line).

Since b+sb + s is a whole number, the last rule means b+sb + s is at most the whole-number part of πa\pi a:

aa11223344
πa\pi a3.143.146.286.289.429.4212.5712.57
top of square at most3366991212

(For a=0a = 0 the top would have to be at most 00, which is impossible.)

Count. For a given aa and ss, the bottom bb can be 0,1,…0, 1, \ldots up to (top limit) −s- s. That is (top limit) −s+1- s + 1 choices.

  1. Side 11 (aa can be 1,2,3,41, 2, 3, 4): 3+6+9+12=303 + 6 + 9 + 12 = 30.
  2. Side 22 (aa can be 1,2,31, 2, 3): 2+5+8=152 + 5 + 8 = 15.
  3. Side 33 (aa can be 1,21, 2): 1+4=51 + 4 = 5.
  4. Side 44 (aa must be 11): the top would need to be at most 33, but the square is 44 tall. None.

Total: 30+15+5=5030 + 15 + 5 = 50.

The answer is (D) 50\boxed{\textbf{(D)}\ 50}.

Why this works

To check that a square fits under a slanted line, you only need to test the one corner that sticks out furthest toward the line. After that, it is careful counting, organized by the size of the square. The strange numbers −0.1-0.1 and 5.15.1 are there only so that squares touching the xx-axis or the line x=5x = 5 still count.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

The region is the triangle-like area with y≥−0.1y \ge -0.1, x≤5.1x \le 5.1 and y≤πxy \le \pi x. For lattice squares the first two conditions simply say y≥0y \ge 0 and x≤5x \le 5.

Describe a square by its lower-left corner (a,b)(a, b) and side ss. Since the line y=πxy = \pi x rises to the right, the corner of the square most likely to cross it is the top-left corner (a,b+s)(a, b+s). So the square fits exactly when
b≥0,a+s≤5,b+s≤πa.b \ge 0, \qquad a + s \le 5, \qquad b + s \le \pi a.
Because b+sb + s is an integer, the last condition is b+s≤⌊πa⌋b + s \le \lfloor \pi a \rfloor, and ⌊πa⌋=3,6,9,12\lfloor \pi a\rfloor = 3, 6, 9, 12 for a=1,2,3,4a = 1, 2, 3, 4 (and a=0a = 0 gives nothing).

For each aa and ss the number of valid bb is ⌊πa⌋−s+1\lfloor \pi a \rfloor - s + 1 when positive:

  • s=1s = 1: a=1,2,3,4a = 1,2,3,4 give 3+6+9+12=303 + 6 + 9 + 12 = 30.
  • s=2s = 2: a=1,2,3a = 1,2,3 give 2+5+8=152 + 5 + 8 = 15.
  • s=3s = 3: a=1,2a = 1,2 give 1+4=51 + 4 = 5.
  • s=4s = 4: a=1a = 1 would need b+4≤3b + 4 \le 3, impossible.

Total: 30+15+5=5030 + 15 + 5 = 50.

The answer is (D) 50\boxed{\textbf{(D)}\ 50}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.