if
N 1, n2, n3 and n4 are arranged in descending order.
while
When n 1 is 0 and n2 is 1, 2, 32 respectively, the sum of all possible permutations,
while
When n 1 is 1 and n2 is 2,3.32, the sum of all possible permutations,
while
When n 1 is 23 and n2 is 24, the sum of all possible permutations,
Finally, add up all the numbers and get the value you want.