Odd sums on a 3×3 grid

The integers 11 through 99 are placed uniformly at random (one per cell) on a 3×33 \times 3 grid. What is the probability that every row, every column, and both main diagonals have an odd sum? The probability is 1M\tfrac1M for an integer MM; find MM.

Show hints (2)+
  1. Reduce to parities: 55 odd, 44 even numbers. A line sums odd iff it holds an even number of evens (00 or 22).
  2. Count valid placements of the 44 evens (constrained), times the arrangements of odds/evens; you get 2880/9!=1/1262880/9!=1/126.

Answer

Reveal answer →

126

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Two Sigma

Related questions