I am currently engaging with the following hypergeometric function as a result of attempting to find a solution for this probability problem for $n$ number of dice:
$$_2F_1\left (\frac{n+k}{2}, \frac{n+k+1}{2};k+1;\frac{4b(d-e+1)}{d^2}\right ); \{n,k,b,d,e\}\in \mathbb{N}^+, z\in \mathbb{R},b < e \leq d$$
I'm trying to determine if there's way to calculate this function that doesn't require infinite sums (ideally, just with elementary functions and finite sums/products).
I first note that this function is of the pattern: $$_2F_1\left (a, a+\frac{1}{2};c;z\right )$$ DLMF 15.9.17 then states that:
$$_2\bar{F}_1\left (a, a+\frac{1}{2}; c; z \right )=2^{c-1}z^\frac{1-c}{2}(1-z)^{-a+\frac{c-1}{2}}P_{2a-c}^{1-c}\left ( \frac{1}{\sqrt{1-z}} \right )$$
where we're using DLMF's definition (14.7.14) of:
$$P_{n}^{m}(z)=\frac{(z^2-1)^{\frac{m}{2}}}{2^nn!}\frac{d^{m+n}}{dx^{m+n}}(z^2-1)^n$$
Okay, that seems reasonable enough to plug in, and if we do, we get:
$$_2\bar{F}_1\left (\frac{n+k}{2}, \frac{n+k+1}{2}; k+1; z \right )=2^{k}z^{-\frac{k}{2}}(1-z)^{-\frac{n}{2}}P_{n-1}^{-k}\left ( \frac{1}{\sqrt{1-z}} \right )$$
So that leaves us with an Associated Legendre Function of negative integer order. DLMF 14.9.3 gives us a recurrence relation that can convert this to an ALF of positive order:
$$P_{\nu}^{-m}\left ( z \right )=\frac{\Gamma(\nu-m+1)}{\Gamma(\nu+m+1)}P_{\nu}^{m}\left ( z \right )$$
But after a lot of work I've realised that this isn't actually suitable for the problem I'm looking at, because for ALFs of integer order and degree, $P_{n}^{m}=0$ where $m>n$, and the problem I'm looking at it's quite common for $|m|>n$, so the easy method is out. I've tried looking at as much of the literature as I can understand, and so far as I can tell, there doesn't seem to be a known identity for $P_{n}^{-m}$ for $|m|>n$ that doesn't involve infinite sums.
So the question I am asking is: Is there a known equation to calculate Associated Legendre Functions of arbitrarily large negative integer order and positive integer degree that doesn't require infinite sums (and, preferably, only requires elementary functions with finite sums/products)?
arb_hypgeom_2f1()
, or corresponding complex-valued function, would be of no use to you, because you need to create your own implementation? $\endgroup$