So I have a problem where I have a set of ordered objects size N. For example,
A = {1, 2, 3, 4, 5}
How do I find how many ordered subsets there are of A that are size N? For instance, for N = 2, there are four total subsets of size N.
{1, 1}, {1, 2}, {2, 1}, {2, 2}
But when you make the subsets ordered, there are now only three subsets.
{1, 1}, {1, 2}, {2, 2}
For N = 3, there are 27 possible subsets, but 10 ordered subsets. For N = 4, there are 256 possible subsets, but only 34 unique ones. We can see the for a set size N, there are N^N subsets of the set size N. What is the pattern for the number of ordered subsets there are of size N, where the original set is size N?