Divide the whole figure diagonally, and only look at the left half. Diagonal parity is determined by e=(%%a+%%b)%%2.
Extract the smallest number in each diagonal, namely1247111622 29 35. This second-order arithmetic progression can be calculated by (n- 1)*n/2+ 1. Batch processing is (a+b-1-1) * (b-1+a)/2+1.
We extract the largest numbers in each diagonal, which are136101521283645. This second-order arithmetic progression can be calculated by (n+ 1)*n/2. Batch processing is (a+b-1+1) * (b-1+a)/2.