It calculates the leftover members on the last row and centers them so no card is left stranded alone.
n=8 · cols 4 · remainder 0