Write exactly one distinct positive integer ( $\leq 2017^2$ ) into each cell of a $2017\times 2017$ square, such that in any row and in any column the $2017$ numbers form an arithmetic sequence.

In how many ways can you do this?

The answer is 8.

**
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.

No explanations have been posted yet. Check back later!