A rectangle with the lengths of sides and is partitioned into unit squares. The external slice of squares is colored with yellow, the next slice (all squares that share a vertex with external slice) are colored with blue. A slice of squares that touches the previous slice is colored with yellow and so on. Find the number of yellow and blue squares.
Mathematical Olympiad in Ukraine, Third Round (January 23, ), 2010
Solution
Do allocate external slices of squares of each color step by step:
- yellow; - blue; - yellow; - blue; - yellow;
- blue.
Now calculate the number of squares in each slice as difference between numbers of squares of external and internal rectangles. Bottom-up:
Blue: .
Yellow: .
Blue: .
Yellow: .
Blue: .
Yellow: .
And simultaneously: yellow , blue .
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.