A157799 Numerator of Bernoulli(n, 1/3).
1, -1, -1, 1, 13, -5, -121, 49, 1093, -809, -49205, 20317, 61203943, -722813, -5580127, 34607305, 25949996501, -2145998417, -2832495743227, 167317266613, 101471818419863, -16020403322021, -4469253897850313, 1848020950359841, 11126033443528968583, -252778977216700025
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..250
Programs
-
Mathematica
Table[Numerator[BernoulliB[n, 1/3]], {n, 0, 50}] (* Vincenzo Librandi, Mar 16 2014 *)
-
PARI
a(n) = my(x=1/3); numerator(eval(bernpol(n))); \\ Ruud H.G. van Tol, May 10 2024
-
Python
from sympy import bernoulli, Integer def a(n): return bernoulli(n, 1/Integer(3)).numerator # Indranil Ghosh, May 01 2017
Comments