Flag Numbers

The flag of the United States features 50 stars, arranged in a rectangular pattern:

The stars are arranged in an alternating pattern on a grid of 11 x 9, with stars in each of the four corners.

In general, a flag pattern consists of stars in an alternating pattern, with stars in the four outside corners. We require the grid to be at least 3 long and 3 wide.

If a number of stars N N can be arranged in a flag pattern, we call N N a flag number . Thus, the smallest flag number is 5.

How many of the integers less than or equal to 100 are flag numbers?

82 51 78 21 54

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

To have stars in each of the four corners, the grid must have odd length and odd width, say 2 n + 1 2n + 1 and 2 m + 1 2m + 1 . The alternating pattern fills half of the grid, rounded upward. Thus

2 N 1 = ( 2 n + 1 ) ( 2 m + 1 ) . 2N - 1 = (2n + 1)(2m + 1).

The question becomes how many odd numbers less than 200 can be factored non-trivially.

This is pretty much the same question as how many odd numbers less than 200 are not prime , except that we must also exclude 1.

There are 46 prime numbers less than 200. One of them is 2, which is of no interest for us; but we replace this by 1.

Therefore the answer is 100 46 = 54 100 - 46 = \boxed{54} .


Not all flag numbers make for good flags. If the US were to lose two states, its flag pattern with 48 stars, its flag pattern would have dimensions 19 x 5: three rows of 10 stars, alternated with two rows of 9 stars. We will therefore call a flag number good if the length of the pattern is less than twice its width. In the table below, the 20 good flag numbers below 100 are marked in boldface.


Here is a list of flag numbers below 100 and the grid on which they can be formed:

5 3 × 3 8 5 × 3 11 7 × 3 13 5 × 5 14 9 × 3 17 11 × 3 18 7 × 5 20 13 × 3 23 9 × 5 15 × 3 25 7 × 7 26 17 × 3 28 11 × 5 29 19 × 3 32 9 × 7 21 × 3 33 13 × 5 35 23 × 3 38 15 × 5 25 × 3 39 11 × 7 41 9 × 9 27 × 3 43 17 × 5 44 29 × 3 46 13 × 7 47 31 × 3 48 19 × 5 50 11 × 9 33 × 3 53 15 × 7 21 × 5 35 × 3 56 37 × 3 58 23 × 5 59 13 × 9 39 × 3 60 17 × 7 61 11 × 11 62 41 × 3 63 25 × 5 65 43 × 3 67 19 × 7 68 15 × 9 27 × 5 71 47 × 3 72 13 × 11 73 29 × 5 74 21 × 7 49 × 3 77 17 × 9 51 × 3 78 31 × 5 80 53 × 3 81 23 × 7 83 15 × 11 33 × 5 55 × 3 85 13 × 13 86 19 × 9 57 × 3 88 25 × 7 35 × 5 89 59 × 3 92 61 × 3 93 37 × 5 94 17 × 11 95 21 × 9 27 × 7 63 × 3 98 15 × 13 39 × 5 65 × 3 \begin{array}{ccccc} \mathbf 5 & 3\times 3 \\ \mathbf 8 & 5\times 3 \\ 11 & 7\times 3 \\ \mathbf{13} & 5\times 5 \\ 14 & 9\times 3 \\ 17 & 11\times 3 \\ \mathbf{18} & 7\times 5 \\ 20 & 13\times 3 \\ \mathbf{23} & 9\times 5 & 15\times 3 \\ \mathbf{25} & 7\times 7 \\ 26 & 17 \times 3 \\ 28 & 11 \times 5 \\ 29 & 19 \times 3 \\ \mathbf{32} & 9 \times 7 & 21 \times 3 \\ 33 & 13 \times 5 \\ 35 & 23 \times 3 \\ 38 & 15 \times 5 & 25 \times 3 \\ \mathbf{39} & 11 \times 7 \\ \mathbf{41} & 9 \times 9 & 27 \times 3 \\ 43 & 17 \times 5 \\ 44 & 29 \times 3 \\ \mathbf{46} & 13 \times 7 \\ 47 & 31 \times 3 \\ 48 & 19 \times 5 \\ \mathbf{50} & 11 \times 9 & 33 \times 3 \\ 53 & 15 \times 7 & 21 \times 5 & 35 \times 3 \\ 56 & 37 \times 3 \\ 58 & 23 \times 5 \\ \mathbf{59} & 13 \times 9 & 39 \times 3 \\ 60 & 17 \times 7 \\ \mathbf{61} & 11 \times 11 \\ 62 & 41 \times 3 \\ 63 & 25 \times 5 \\ 65 & 43 \times 3 \\ 67 & 19 \times 7 \\ \mathbf{68} & 15 \times 9 & 27 \times 5 \\ 71 & 47 \times 3 \\ \mathbf{72} & 13 \times 11 \\ 73 & 29 \times 5 \\ 74 & 21 \times 7 & 49 \times 3 \\ \mathbf{77} & 17 \times 9 & 51 \times 3 \\ 78 & 31 \times 5 \\ 80 & 53 \times 3 \\ 81 & 23 \times 7 \\ \mathbf{83} & 15 \times 11 & 33 \times 5 & 55 \times 3 \\ \mathbf{85} & 13 \times 13 \\ 86 & 19 \times 9 & 57 \times 3 \\ 88 & 25 \times 7 & 35 \times 5 \\ 89 & 59 \times 3 \\ 92 & 61 \times 3 \\ 93 & 37 \times 5 \\ \mathbf{94} & 17 \times 11 \\ 95 & 21 \times 9 & 27 \times 7 & 63 \times 3 \\ \mathbf{98} & 15 \times 13 & 39 \times 5 & 65 \times 3 \end{array}


Follow-up question : What is the smallest flag numbers that corresponds to two distinct "good" flag patterns?

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...