Text this: The nth commutativity degree of nonabelian metabelian groups of order at most 24