list $= \{1, 2, 3, 4, 5\}$;
The above list has $5$ numbers. The number of combinations when we group them into $3$ is $10$.
The list if combinations are
$\{123, 124, 125, 134, 135, 145, 234, 235, 245, 345\}$
I need to calculate the number of occurrences of an item in the list. When $n = 5$, the number of occurrences of $n$ in the list is $6$.
Is there any formula to find the number of occurrences?
You are taking $3$ numbers out of $5$ numbers. According to you, the place of $5$ must be fixed. So, there are two places remaining with $4$ possible numbers .