Since matrix has 24 elements,
No. of rows×No. of columns=24
1×24=24 6×4=24
2×12=24 8×3=24
3×8=24 12×2=24
4×6=24 24×1=24
Hence, possible orders are
1×24,2×12,3×8,4×6,6×4,8×3,12×2,24×1
If matrix has 13 elements.
No. of rows×No. of columns=13
1×13=13 or 13×1=13
Hence, possible orders are 1×13 and 13×1.