It's been a while since I've had to notate math properly and I could only get so much from googling. I've checked my math extensively but I feel like my notation and formatting is improper, any tips?
The formula is a modified combination that involves: $m$ elements labeled $n_1$ through $n_m$, the total sum of the previous elements $n_0$, and the size of the resulting subset $r$. With the condition that $r$ is the smallest element, heres what I have:
$C_{mex}(n := \{n_1...n_m\}, n_0 := \sum_{i=1}^mn_i, r) = C(n_0,r) - \sum_{i=2}^m(n_i \sum_{j=2}^i(C(i,j) \cdot C(n_0-j,r-j))) $
where $\forall n_i \in n , r < n_i$
Primarily I'm wondering about the declarations and the condition. As a secondary question, how would I write a second condition that each element needs to be in the set of natural numbers? Any help is appreciated!