A $2005 \times 2005$ square consists of $(2005)^2$ unit squares. The middle square of each row is shaded. If a rectangle (of any size) is chosen at random, what is the probability that the rectangle includes a shaded square?
EDIT: Okay let me explain my thought process. The probability is going to be$${{\text{total }\#\text{ of rectangles with a shaded square}}\over{\text{total }\#\text{ of rectangles}}}$$Let's first calculate the total number of rectangles with a shaded square.
- Number of rectangles with unit height passing through the center shaded column and with ending squares on both sides of the column: $1002(2005)(1002)$
- Number of rectangles of height at least two passing through the center shaded column with their vertical sides not directly on the center: ${{1002(2005)(2004)(1002)}\over2}$ (we divide by two since two squares not in the same row or column determine a rectangle and form one of the diagonals, but there's also the other diagonal pair and so we divide by $2$ to avoid overcounting)
- Number of rectangles with unit height with an ending square lying on the center shaded column (and not a $1 \times 1$ square): $2(2005)(1002)$
- Number of rectangles of height at least two with one of its vertical sides on the center shaded column: ${{2(2005)(2004)(1002)}\over2}$
- Number of vertical unit width rectangles on the center shaded column with height at least $2$: ${{2005(2004)}\over2}$
- Number of unit squares on the center shaded column: $2005$
Adding that all up, the total number of rectangles with a shaded square is $2023099189135$.
Okay, next let's calculate the total number of rectangles:
- Number of rectangles of either unit height or width (and not a $1 \times 1$ square): ${{2(2005)(2005)(2004)}\over2}$
- Number of $1 \times 1$ squares: $2005(2005)$
- Number of rectangles of at least both height $2$ and width $2$: ${{2005(2005)(2004)(2004)}\over{2(2)}}$
Adding that all up, the total number of rectangles is $4044181330225$.
Finally, plugging into Wolfram Alpha, I end up getting:$${{2023099189135}\over{4044181330225}} = {{1003}\over{2005}}$$
Okay, that was a lot of work, and realistically I don't think I would've been able to evaluate all that by hand quickly.
- Am I correct?
- If so, is there an easier i.e. less laborious way to solve this problem?