Infinitely Large Grid

Limits 1s, 512 MB

One day Joti, Risty and Mithy — three friends were playing with an infinitely large grid together. The columns of the grid are numbered from left to right starting from 1 and the rows are counted from top to bottom in the similar way. There were positive integers written in each tile of the grid. All the integers in the grid are unique and appear in a beautiful manner as shown in the following image:

This is a companion discussion topic for the original entry at