SymPy | Partition.RGS_unrank() in Python
Partition.RGS_unrank(rank, n) : RGS_unrank() is a sympy Python library function that gives the unranked restricted growth strings (string where a[i] is the block in which element i occurs) for a superset of size n. Restricted growth strings - string in which each character, ai results in the Block (