I’m looking for a way to re-express a partition given in full form, like

${{2, 2, 1, 1}}$, into the shortened form ${2^2, 1^2}$, *i.e.* given a partition with repeated entries, count the number of repetitions of a given entry, and convert this (without evaluating the $a^b$) to exponential form.

I’m aware that “Tally” will produce the correct count:

```
Tally({2,2,1,1})
```

correctly returns ${{2,2},{1,2}}$ but converting this to $2^2 1^2$ is the part that gives me trouble.

A final refinement would be that, when $1$ occurs as an exponent, it is NOT displayed, i.e. ${4,1,1}$ is displayed in shortened form as ${4, 1^2}$. The separation by “,” is optional but if the entries are in the double digits it makes a little more sense to have the “,”.