Four-dimensional tic-tac-toe

Tic-tac-toe is a classical game; however, in the standard two-dimensional version of the game, it is far too easy to guarantee a draw or a win. To make the game more interesting, two players decide to play on a four-dimensional 3 × 3 × 3 × 3 3 \times 3 \times 3 \times 3 grid. How many different ways are there to make a line of 3?


The answer is 272.

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

Patrick Corn
Aug 9, 2018

The simplest way to count the lines on an n n -dimensional grid (which I stole from this answer on StackExchange ) is to build an extra layer around it, so that it's the center of a 5 × 5 × × 5 5 \times 5 \times \cdots \times 5 hypercube; and now the key observation is that every winning tic-tac-toe line intersects a pair of points on the outer layer, and every point on the outer layer intersects exactly one winning tic-tac-toe line on the inner hypercube. (The easiest way to see this for me is to put coordinates on everything and then see that each coordinate of the outer point uniquely determines the corresponding coordinate of each point on the line.)

The number of points on the outer layer is 5 n 3 n , 5^n - 3^n, so the number of lines is 5 n 3 n 2 . \frac{5^n-3^n}2. When n = 4 n=4 this gives 272 . \fbox{272}.

Nice solution

Ekesh Kumar - 2 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...