1002242domain: NAppears in sequencesa(n) = 3*n^4 + 12*n^3 + 30*n^2 + 36*n + 17.at n=23A160827Similar to A374525, but for each starting matrix with a choice of whether to sort by columns or rows first, such that the total number of sorting steps for this matrix is minimized.at n=28A374526