Question: Why can't gfun guess the generating function of the Bernoulli numbers?

That the Bernoulli numbers has z/(exp(z)-1)) as an exponentional generating functions is of course very well known. I am wondering why the gfun package doesn't seem to be able to work this out? Naive approaches like

gfun[guessgf]([seq(bernoulli(n),n=0..100)],z);

give FAIL. I would expect gfun to be able to transform the given sequence corresponding to replacing A(z) by 1/A(z), easily recognize (exp(z)-1))/z, and transform back. Perhaps the package is in need of maintenance?

Any help would be much appreciated.

Best,

Soren

 

 

Please Wait...