I remember having come across a nifty function that guesses some special functions taking some specific values for its parameters, such that when expanded in a power series, its coefficients match a finite set of input coefficients (probably first $n$ coefficients where $n$ is finite). I am not able to trace it somehow. Can anyone help me?
Example:
The first 5 coefficients in the power series expansion of a function are: $\{\frac{1}{2},-\frac{1}{24},\frac{1}{72},-\frac{1}{144},\frac{11}{2592}\}$. What is one such $C^\infty$ non-polynomial function?
I am hoping the answer is some generalized hypergeometric function with particular values for its parameters.
Edit 1:
FindGeneratingFunction[]
was the function I was looking for. However, it doesn't seem to work here. What could be some alternative ways to do this?
Edit 2:
The last term in my example list should be $\frac{11}{2592}$. I have updated it now. I had solved for a few terms of the function as follows. I am posting it here for reference:
In[24]:= ClearAll["Global`*"];
ϕcl[λ_, J_] = ϕ /. Solve[ϕ/G + λ/6*ϕ^3 == J, ϕ][[1]];
W[λ_, J_] = Integrate[ϕcl[λ, J], J];
Series[W[λ, J], {J, 0, 20}, {λ, 0, 20}] // PowerExpand // Simplify // Normal
Out[27]= (G J^2)/2 - 1/(G^2 λ) - 1/24 G^4 J^4 λ +
1/72 G^7 J^6 λ^2 - 1/144 G^10 J^8 λ^3 + (
11 G^13 J^10 λ^4)/2592 - (91 G^16 J^12 λ^5)/31104 + (
17 G^19 J^14 λ^6)/7776 - (
323 G^22 J^16 λ^7)/186624 + (
4807 G^25 J^18 λ^8)/3359232 - (
16445 G^28 J^20 λ^9)/13436928
Ignore the second term, and pick the rest of the coefficients. It is great to see that after feeding the first 8 coefficients, it spits out a hypergeometric function!
In[31]:= FindGeneratingFunction[{1/2, -(1/24), 1/72, -(1/144), 11/2592,
-(91/31104), 17/7776, -(323/186624)}, x]
Out[31]= (1 - Hypergeometric2F1[-(2/3), -(1/3), 1/2, -((9 x)/8)])/x
From a look at the code that generates the series up to the FindGeneratingFunction[]
, can anyone suggest a better way I could have arrived at this result?
FindSequenceFunction[]
usually does much better if it has a lot of sequence elements to try stuff with. $\endgroup$