A two variable recurrence relation with conditionals
Few votes (2) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
I have arrived at the combinatorial problem of enumerating certain types of ballot paths. This has led to analyzing the sequence defined by the following recurrence
$$ f(n,m) = \begin{cases} f(n, \thinspace m-1) + f(n-m, \thinspace m-1), & \text{ if } n \leq \left \lceil \binom{m}{2}/2 \right \rceil \\ f(n-m, \thinspace m-1), & \text{ if } n > \lceil \binom{m}{2}/2 \rceil \end{cases} $$
where \(f(n,0) = \begin{cases} 1, & \text{ if } n = 0 \\ 0, & \text{ if } n \neq 0 \end{cases}\)
I note that the recurrence \(f(n, \thinspace m) = f(n, \thinspace m-1) + f(n-m, \thinspace m-1)\) alone counts the number of partitions of \(n\) into distinct parts bounded by \(m\), so a closed formula for my sequence is probably out of the question.
Question: Is it possible to obtain a generating function for this sequence?
I have seen many threads here regarding generating functions for recurrences with two …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.