For fixed n, a block (x,y) contains the numbers n/2y^2-n/2y + yz + x for all 0 <= z < n.
Is that
((n/2) * y^2) - ((n/2) * y) + (y * z) + x ? (For z ranging from 0 to n)
If so, alright, that makes more sense to me, thanks.
So, n * (y * (y-1)/2) + x + y * z ?
Edit: does HN have an escape character to deal with the asterisks?