Grid, Formula, Array

try this logic,

Guys in the following threads helped to create the algorithms for placing grids…