Background: I know it is possible to calculate the number of partitions of a set of size $n$ using the Bell numbers: https://en.wikipedia.org/wiki/Bell_number
I am also aware that you can calculate all of the partitions of size $k$ of a set of size $n$ using the Stirling Numbers of the second kind: https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
I am curious if it is possible to calculate, given a particular partition, how many possible partitions can be made by manipulating a single element. For example, given $n=4$ and partition {1,2,3}, {4}, I can move to any of the following partitions:
- {1,2,3,4}
- {1,2}, {3,4}
- {1,3}, {2,4}
- {2,3}, {1,4}
- {1,2}, {3}, {4}
- {1,3}, {2}, {4}
- {2,3}, {1}, {4}
Is there a way to do this in general?
Let $k$ be the number of groups in the given partition, $k_1$ the number of groups of size 1, and $k_2$ the number of groups of size 2.
Each possible move is one of the following:
No two of these can give the same outcome, so the total number of possible outcomes is the sum of these five counts.