This site is supported by donations to The OEIS Foundation.

# Generalized Bernoulli Numbers and Polynomials

KEYWORDS: Bernoulli numbers, Bernoulli polynomials, Stirling numbers, Eulerian numbers, Stirling-Frobenius numbers.

Concerned with sequences: A225480, A225481, A226038, A226039, A226040, A226156, A226157

This is the third part of a series of posts which build on each other.

It is recommended that the reader skims through the previous parts first to become familiar with the definitions and notations given there which we will not repeat here.

You can also read this post much better rendered (with MathJax) on my homepage

## The generalized Bernoulli numbers

The Bernoulli numbers (Concrete Mathematics, section 6.5), which are rational numbers, can be generalized via the Stirling-Frobenius subset numbers.

${\displaystyle \operatorname {B} _{n}^{(m)}=\sum _{k=0}^{n}{\frac {(-m)^{k}}{k+1}}k!{\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}=\sum _{k=0}^{n}{\frac {(-1)^{k}}{k+1}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle _{m}{\binom {j}{n-k}}.}$

We will call these numbers the generalized Bernoulli numbers. In the case ${\displaystyle m=1}$ we will suppress the index ${\displaystyle m}$ and write

${\displaystyle \operatorname {B} _{n}=\sum _{k=0}^{n}{\frac {(-1)^{k}}{k+1}}k!{\begin{Bmatrix}n\\k\end{Bmatrix}}=\sum _{k=0}^{n}{\frac {(-1)^{k}}{k+1}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle {\binom {j}{n-k}}.}$

These are the classical Bernoulli numbers by a theorem due to Frobenius relating Eulerian numbers ${\displaystyle \scriptstyle \left\langle {n \atop k}\right\rangle }$ to Stirling set numbers ${\displaystyle \scriptstyle \{{n \atop k}\}}$. We use notations introduced by D. Knuth.

 n\k 0 1 2 3 4 5 0 1 1 0 -1/2 2 0 -1/2 2/3 3 0 -1/2 6/3 -6/4 4 0 -1/2 14/3 -36/4 24/5 5 0 -1/2 30/3 -150/4 240/5 -120/6
 n\k 0 1 2 3 4 5 0 1 1 1 -2/2 2 1 -8/2 8/3 3 1 -26/2 72/3 -48/4 4 1 -80/2 464/3 -768/4 384/5 5 1 -242/2 2640/3 -8160/4 9600/5 -3840/6

${\displaystyle \operatorname {B} _{n}^{(1)}=1,{\frac {-1}{2}},{\frac {1}{6}},0,{\frac {-1}{30}},0,{\frac {1}{42}},0,{\frac {-1}{30}},0,{\frac {5}{66}},0,{\frac {-691}{2730}},...}$

${\displaystyle \operatorname {B} _{n}^{(2)}=1,0,{\frac {-1}{3}},0,{\frac {7}{15}},0,{\frac {-31}{21}},0,{\frac {127}{15}},0,{\frac {-2555}{33}},0,{\frac {1414477}{1365}},...}$

To simplify things we will use the Clausen numbers ${\displaystyle \scriptstyle \operatorname {C} _{n}}$ as the common denominators for all ${\displaystyle \scriptstyle \operatorname {B} _{n}^{(m)}}$. The Clausen numbers are defined as ${\displaystyle \scriptstyle \operatorname {C} _{0}=1}$ and for ${\displaystyle \scriptstyle n\geq 1}$ as ${\displaystyle \scriptstyle \operatorname {C} _{n}=\prod _{p-1|n}p}$ where p is prime (A027760, see also A160014).

${\displaystyle \operatorname {C} _{n}=1,\,2,\,6,\,2,\,30,\,2,\,42,\,2,\,30,\,2,\,66,\,2,\,2730,\,2,\,6,\,2,\,510,\,2,\,798,\,2,...}$

This means, for instance, that we will not reduce ${\displaystyle \scriptstyle \operatorname {B} _{n}^{(2)}}$ to lowest terms but will write the numbers in the form (see A225480 for the numerators):

${\displaystyle \operatorname {B} _{n}^{(2)}=1,0,{\frac {-2}{6}},0,{\frac {14}{30}},0,{\frac {-62}{42}},0,{\frac {254}{30}},0,{\frac {-5110}{66}},0,{\frac {2828954}{2730}}...}$

Of course it requires a proof that this is possible. For ${\displaystyle m=1}$ this is the famous von Staudt-Clausen theorem and for ${\displaystyle m>1}$ this follows from the fact that the denominator of ${\displaystyle \scriptstyle \operatorname {B} _{n}^{(m)}}$ divides ${\displaystyle \scriptstyle \operatorname {C} _{n}}$. In other words we have a generalization of the von Staudt-Clausen theorem from "For ${\displaystyle \scriptstyle n\geq 0:\,\operatorname {denom} \ \operatorname {B} _{n}=\operatorname {C} _{n}}$" to "For ${\displaystyle \scriptstyle m\geq 1}$ and ${\displaystyle \scriptstyle n\geq 0:\,}$ ${\displaystyle \scriptstyle \operatorname {denom} \ \operatorname {B} _{n}^{(m)}}$ divides ${\displaystyle \scriptstyle \operatorname {C} _{n}.}$ "

 Clausen-normalized numerators of Bn(m) 0 1 2 3 4 5 6 7 ${\displaystyle m=1}$, A027641 1 -1 1 0 -1 0 1 0 ${\displaystyle m=2}$, A225480 1 0 -2 0 14 0 -62 0 ${\displaystyle m=3}$ 1 1 -3 -2 39 10 -363 -98 ${\displaystyle m=4}$ 1 2 -2 -6 14 50 -62 -854 ${\displaystyle m=5}$ 1 3 1 -12 -145 148 4537 -3892 ${\displaystyle m=6}$ 1 4 6 -20 -546 340 22506 -12740 ${\displaystyle m=7}$ 1 5 13 -30 -1321 670 71533 -33910

The table above can be computed with Sage and this script:

def Clausen(n):   # -- The Clausen numbers --
if n == 0: return 1
return mul(filter(lambda s: is_prime(s), map(lambda i: i+1, divisors(n))))

def ClausenB(n):  # -- Clausen numbers, implementation better to read but much slower --
return mul(filter(lambda p: n%(p-1) == 0, primes(n+2)))

@CachedFunction
def EulerianNumber(n, k, m) :   # -- The generalized Eulerian numbers --
if n == 0: return 1 if k == 0 else 0
return (m*(n-k)+m-1)*EulerianNumber(n-1,k-1,m) + (m*k+1)*EulerianNumber(n-1,k,m)

def gen_bernoulli_number(n, m):   # -- The generalized Bernoulli numbers --
for j in (0..n))*(-1)^k/(k+1) for k in (0..n))

for m in (1..7): [gen_bernoulli_number(n,m)*Clausen(n) for n in (0..7)]


Plotting abs(gen_bernoulli_number(2n, m)) for ${\displaystyle \scriptstyle 0\leq n\leq 50}$ and ${\displaystyle \scriptstyle 1\leq m\leq 3}$ with the vertical axis in logarithmic scale we see how fast the numbers grow in size (the graph of the classical Bernoulli numbers is red):

Note that ${\displaystyle \scriptstyle \operatorname {B} _{2n}^{(2)}\ =\ \operatorname {B} _{2n}^{(4)}}$ for ${\displaystyle \scriptstyle n\geq 0}$. Moreover the ${\displaystyle \scriptstyle \operatorname {B} _{2n+1}^{(4)}}$ are integers. Thus ${\displaystyle \scriptstyle \operatorname {B} _{n}^{(4)}-\operatorname {B} _{n}^{(2)}}$ is the integer sequence

${\displaystyle 0,\,1,\,0,\,-3,\,0,\,25,\,0,\,-427,\,0,\,12465,\,0,\,-555731,\,0,\,...}$

This is up to sign A009843 (Egf. x/cos(x)), but more exciting these are the numerators of the lost Bernoulli numbers as I called them in my blog post on the Euler-Bernoulli diamond, the numerators of the Bernoulli secant numbers A009843 / A193476.

The observation that ${\displaystyle \scriptstyle \operatorname {B} _{2n+1}^{(4)}}$ are integers is just a special case of a much more general fact: All ${\displaystyle \scriptstyle \,\operatorname {B} _{2n+1}^{(m)}}$ are integers for ${\displaystyle \scriptstyle m\geq 1}$ and ${\displaystyle \scriptstyle n\geq 1}$. Thus the Bernoulli numbers are only semi-rationals (pardon the expression), a fact which is of no great importance in the classical case because all classical Bernoulli numbers with an odd index ${\displaystyle \scriptstyle n>1}$ are zero.

 m \ n 1 2 3 4 5 6 7 3 -1 5 -49 809 -20317 722813 -34607305 4 -3 25 -427 12465 -555731 35135945 -2990414715 5 -6 74 -1946 88434 -6154786 607884394 -80834386026 6 -10 170 -6370 415826 -41649850 5922729722 -1134081384850 7 -15 335 -16955 1503963 -204957775 39666688711 -10337889346275

Fortunately all these sequences can be computed by a single formula:

${\displaystyle \operatorname {B} _{2n+1}^{(m)}=-\sum _{k=0}^{2n+1}{\binom {2n+1}{k}}\operatorname {B} _{k}m^{k}}$

These sequences can be found (modulo sign, offset, suppressed zeros and other OEIS-typical peculiarities) in A002111, A009843, A069852, A069994, A083011, A083012, A083013, A083014. But much more is true.

${\displaystyle \operatorname {B} _{n}^{(m)}=(-1)^{n}\sum _{k=0}^{n}{\binom {n}{k}}\operatorname {B} _{k}m^{k}\qquad (n>0,\ m>0)}$

With regard to the Stirling-Frobenius numbers and generalized Eulerian numbers we thus have the identities

 ${\displaystyle \sum _{k=0}^{n}{\frac {(-m)^{k}}{k+1}}k!{\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}=\sum _{k=0}^{n}{\frac {(-1)^{k}}{k+1}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle _{m}{\binom {j}{n-k}}=(-1)^{n}\sum _{k=0}^{n}{\binom {n}{k}}\operatorname {B} _{k}m^{k}.}$ (I)

This proves that our choice of the parameter m in generalizing the Eulerian numbers and the Stirling numbers was a sensible choice.

But wait a minute! Aren't the polynomials ${\displaystyle \scriptstyle \sum _{k=0}^{n}{\binom {n}{k}}\operatorname {B} _{k}x^{k}}$ the Bernoulli polynomials? Despite the appearance they are not (DLMF). Anyway, let us experiment a little bit: What happens if we replace the Bernoulli numbers in the formula by the Bernoulli polynomials?

Generalized Bernoulli polynomials ${\displaystyle \scriptstyle \operatorname {B} _{n,2}(x).}$

More precisely we define the generalized Bernoulli polynomials as

 ${\displaystyle \operatorname {B} _{n,m}(x)=\sum _{k=0}^{n}\sum _{j=0}^{k}\sum _{v=0}^{j}{\frac {(-1)^{n-v}}{(j+1)}}{\binom {n}{k}}{\binom {j}{v}}(m(v-x))^{k}.}$ (II)

The reader may convince himself that ${\displaystyle \scriptstyle \operatorname {B} _{n,1}(x)}$ are the classical Bernoulli polynomials. Moreover

${\displaystyle \operatorname {B} _{n,m}(x)=(-1)^{n}\sum _{k=0}^{n}{\binom {n}{k}}\operatorname {B} _{k}(-x)m^{k}.}$

In particular we now can state the generalized Bernoulli numbers in a form independent from the Stirling-Frobenius numbers and generalized Eulerian numbers in the same way as the classical Bernoulli numbers are associated with the classical Bernoulli polynomials:

${\displaystyle \operatorname {B} _{n}^{(m)}=\operatorname {B} _{n,m}(0)=\sum _{k=0}^{n}\sum _{j=0}^{k}\sum _{v=0}^{j}{\frac {(-1)^{n-v}}{(j+1)}}{\binom {n}{k}}{\binom {j}{v}}(mv)^{k}}$

Many special cases of the formulas above could be added to the sequences in OEIS. We only give one for the purpose of illustration: the Glaisher G numbers A002111 (J.W.L. Glaisher, On a set of coefficients analogous to the Eulerian numbers) written as generalized Bernoulli numbers.

${\displaystyle \operatorname {G} _{n}=\operatorname {B} _{2n+1}^{3}=\sum _{k=0}^{2n+1}\sum _{j=0}^{k}\sum _{v=0}^{j}{\frac {(-1)^{n-v+1}}{(j+1)}}{\binom {2n+1}{k}}{\binom {j}{v}}(3v)^{k}}$

# Generalized Bernoulli polynomials
def gen_bernoulli_polynomial(n, m, x):
for v in (0..j)) for j in (0..k)) for k in (0..n))
return expand(p)

# Alternative description of the generalized Bernoulli polynomials
# based on standard Bernoulli polynomials
def gen2_bernoulli_polynomial(n, m, x):
return (-1)^n*sum(binomial(n,k)*bernoulli_polynomial(-x,k)*m^k for k in (0..n))

# Generalized Bernoulli numbers
# based on generalized Bernoulli polynomials
def gen_bernoulli_number(n, m):
return gen_bernoulli_polynomial(n, m, 0)


## The scaled generalized Bernoulli numbers

The definition of the Stirling-Frobenius numbers

${\displaystyle {\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}={\frac {1}{m^{k}k!}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle _{m}{\binom {j}{n-k}}}$

suggests a second way to generalize Bernoulli numbers in the spirit of Frobenius:

${\displaystyle \beta _{n}^{(m)}=\sum _{k=0}^{n}{\frac {(-1)^{k}}{k+1}}k!{\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}=\sum _{k=0}^{n}{\frac {(-m)^{-k}}{k+1}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle _{m}{\binom {j}{n-k}}}$

We will call these numbers the scaled generalized Bernoulli numbers. Clearly ${\displaystyle \scriptstyle {\beta }_{n}^{(1)}\ =\ \operatorname {B} _{n}}$.

 n\k 0 1 2 3 4 5 0 1 1 0 -1/2 2 0 -1/2 2/3 3 0 -1/2 6/3 -6/4 4 0 -1/2 14/3 -36/4 24/5 5 0 -1/2 30/3 -150/4 240/5 -120/6
 n\k 0 1 2 3 4 5 0 1 1 1 -1/2 2 1 -4/2 2/3 3 1 -13/2 18/3 -6/4 4 1 -40/2 116/3 -96/4 24/5 5 1 -121/2 660/3 -1020/4 600/5 -120/6

${\displaystyle {\beta }_{n}^{(1)}=1,-{\frac {1}{2}},{\frac {1}{6}},0,-{\frac {1}{30}},0,{\frac {1}{42}},0,-{\frac {1}{30}},0,{\frac {5}{66}},0,-{\frac {691}{2730}},...}$

${\displaystyle {\beta }_{n}^{(2)}=1,{\frac {1}{2}},-{\frac {2}{6}},-{\frac {2}{2}},{\frac {14}{30}},{\frac {33}{6}},-{\frac {62}{42}},-{\frac {132}{2}},{\frac {254}{30}},{\frac {14585}{10}},...}$

It is convenient to use as common denominators for all ${\displaystyle \scriptstyle {\beta }_{n}^{(m)}}$ the numbers ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}}$ which are defined ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{0}=1}$ and for ${\displaystyle \scriptstyle n\geq 1}$ as ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}=\prod _{p|(n+1)\operatorname {C} _{n}}p}$ where p is prime. In other words ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}}$ is the product over all primes p ≤ n + 1 such that p divides n + 1 or p − 1 divides n. We call this the weak Clausen condition because it relaxes the Clausen condition ${\displaystyle \scriptstyle (p-1)\mid n}$ by logical disjunction with ${\displaystyle \scriptstyle p\mid (n+1)}$. This results in sequence A225481:

${\displaystyle {\tilde {\operatorname {C} }}(n)=1,\,2,\,6,\,2,\,30,\,6,\,42,\,2,\,30,\,10,\,66,\,6,\,2730,\,14,\,30,\,2,\,510,\,6,...}$

Of course the claim that for all n and m the denominator of ${\displaystyle \scriptstyle \beta _{n}^{(m)}}$ divides ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}}$ requires a proof. Moreover we claim that the terms of all other sequences with this property are multiples of the terms of this sequence. The two claims can be conflated to

${\displaystyle {\tilde {\operatorname {C} }}(n)=\operatorname {lcm\{2,\operatorname {denom} \ {\beta }_{n}^{(m)}\mid {m\geq 1}} \}\qquad (n\geq 1).}$

The right hand side makes sense as, for n fixed, there are in fact only a finite number of different ${\displaystyle \scriptstyle \operatorname {denom} \ {\beta }_{n}^{(m)}}$ (where the ${\displaystyle \scriptstyle \beta _{n}^{(m)}}$ are reduced to lowest terms). The additional '2' is necessary because the Clausen condition is true for the prime ${\displaystyle \scriptstyle p=2}$ even if 2 does not divide n.

 C~lausen-normalized numerators of ${\displaystyle \scriptstyle \operatorname {\beta } _{n}^{(m)}}$ 0 1 2 3 4 5 6 7 ${\displaystyle m=1}$, A226156 1 -1 1 0 -1 0 1 0 ${\displaystyle m=2}$, A226157 1 1 -2 -2 14 33 -62 -132 ${\displaystyle m=3}$ 1 3 7 -6 -411 26 10767 1178 ${\displaystyle m=4}$ 1 5 28 0 -1546 -1191 27868 24202 ${\displaystyle m=5}$ 1 7 61 28 -2941 -5580 -68123 96212 ${\displaystyle m=6}$ 1 9 106 90 -3426 -15175 -594474 172520 ${\displaystyle m=7}$ 1 11 163 198 -1111 -31362 -2119277 -3682

The table above can be computed with this Sage script:

# -- The generalized scaled Bernoulli numbers --
def genscale_bernoulli_number(n, m):
for j in (0..n))/((-m)^k*(k+1)) for k in (0..n))

def Clausen_tilde(n):  # -- The weak Clausen condition --
if n == 0: return 1
return mul(filter(lambda p: ((n+1)%p == 0) or (n%(p-1) == 0), primes(n+2)))

def Clausen_tildeA(n):  # -- Same as Clausen_tilde but much faster --
if n == 0: return 1
F = filter(lambda s: is_prime(s), map(lambda i: i+1, divisors(n)))
G = [x for x in prime_divisors(n+1) if not x in F]
return mul(F)*mul(G)

def divides(a,b): return b%a == 0
# -- Best to read but slow --
def A225481(n):   # -- A225481 is the OEIS name for Clausen_tilde --
return mul(filter(lambda p: divides(p,n+1) or divides(p-1,n), primes(n+2)))

for m in (1..7): [genscale_bernoulli_number(n,m)*Clausen_tilde(n) for n in (0..7)]


## Appendix: The sequence C~n / Cn

From the definition ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{0}=1}$ and for ${\displaystyle \scriptstyle n\geq 1}$

${\displaystyle {\tilde {\operatorname {C} }}_{n}=\prod _{p|(n+1)\operatorname {C} _{n}}p\qquad (p\ \operatorname {prime} ),}$

it follows that ${\displaystyle \scriptstyle \operatorname {C} _{n}}$ divides ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}}$. The quotients are A226040:

${\displaystyle {\tilde {\operatorname {C} }}_{n}/\operatorname {C} _{n}=1,1,1,1,1,3,1,1,1,5,1,3,1,7,5,1,1,3,1,5,7,11,1,3,1,13,...}$

Let's spell out the definition: ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}/\operatorname {C} _{n}}$ is the product over all primes p such that p divides n + 1 and p − 1 does not divide n.

Analyzing this sequence one finds two other interesting sequences: The positions n such that ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}\neq \operatorname {C} _{n}}$ and their complement, the positions n such that ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}=\operatorname {C} _{n}}$.

=/= : 5, 9, 11, 13, 14, 17, 19, 20, 21, 23, 25, 27, 29, 32, 33, 34, 35,
=  : 0, 1, 2, 3, 4, 6, 7, 8, 10, 12, 15, 16, 18, 22, 24, 26, 28, 30,


I expected to find well known number-theoretic sequences and so I threw the above number slices into the search-mouth of OEIS. And indeed there were two hits. A080765 for ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}\neq \operatorname {C} _{n}}$ and called "m such that ${\displaystyle \scriptstyle m+1}$ divides ${\displaystyle \scriptstyle \operatorname {lcm} (1,2,...m)}$". And A181062 for ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}=\operatorname {C} _{n}}$ named "prime powers minus 1". Simple relations like these were exactly what I was hoping for. But do they fit our definitions?

The answer is 'No'. According to our definition the case ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}=\operatorname {C} _{n}}$ says that every prime which divides ${\displaystyle \scriptstyle n+1}$ also divides ${\displaystyle \scriptstyle \operatorname {C} _{n}.}$ And ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{n}\neq \operatorname {C} _{n}}$ says at least one prime divides ${\displaystyle \scriptstyle n+1}$ which does not divide ${\displaystyle \scriptstyle \operatorname {C} _{n}.}$

The first spoiler is ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}_{44}=690=\operatorname {C} _{44}}$. The only primes which divide 45 are 3 and 5. Since 2 and 4 divide 44 the primes 3 and 5 also divide ${\displaystyle \scriptstyle \operatorname {C} _{44}}$. However 45 is not the power of a prime. So I decided to submit two new sequences: A226038 and A226039.

def is_A080765(n):   return not is_prime_power(n+1)
def A080765_list(n): return filter(is_A080765, (0..n))

def is_A181062(n):   return is_prime_power(n+1)
def A181062_list(n): return filter(is_A181062, (0..n))

def F(n): return filter(lambda p: ((n+1)%p == 0) and (n%(p-1) <> 0), primes(n))
def A226040(n): return mul(F(n))
def A226038_list(n): return filter(lambda n: []==F(n), (0..n))
def A226039_list(n): return filter(lambda n: []<>F(n), (0..n))


As if things are not already confusing enough there is a third sequence closely related to ${\displaystyle \scriptstyle {\operatorname {C} }}$ and ${\displaystyle \scriptstyle {\tilde {\operatorname {C} }}}$: the denominators of the Bernoulli polynomials. We will use them in the next section.

 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A141056 Clausen 1 2 6 2 30 2 42 2 30 2 66 2 2730 2 6 A225481 Weak Clausen 1 2 6 2 30 6 42 2 30 10 66 6 2730 14 30 A144845 Denom Bernoulli polynomials 1 2 6 2 30 6 42 6 30 10 66 6 2730 210 30

## Appendix: The generalized Bernoulli polynomials Bn,2(x).

Again it is convenient to list the generalized Bernoulli polynomials not with coefficients which are reduced to lowest terms, rather with coefficients relative to the denominators of the classical Bernoulli polynomials (which are in A144845). We will call this the normalized form of the generalized Bernoulli polynomials. Thus the beautiful polynomials in the case m = 2 can be written as ${\displaystyle \scriptstyle \operatorname {B} _{n,2}(x)={p}_{n}(x)/c_{n}.}$

 ${\displaystyle \scriptstyle p_{n}(x)=\sum _{k=0}^{n}A226037(n,k)x^{k}}$ ${\displaystyle \scriptstyle c_{n}=A144845(n)}$ ${\displaystyle \scriptstyle \operatorname {B} _{0,2}(x)}$ 1 1 ${\displaystyle \scriptstyle \operatorname {B} _{1,2}(x)}$ 4x 2 ${\displaystyle \scriptstyle \operatorname {B} _{2,2}(x)}$ 24x2 − 2 6 ${\displaystyle \scriptstyle \operatorname {B} _{3,2}(x)}$ 16x3 − 4x 2 ${\displaystyle \scriptstyle \operatorname {B} _{4,2}(x)}$ 480x4 − 240x2 + 14 30 ${\displaystyle \scriptstyle \operatorname {B} _{5,2}(x)}$ 192x5 − 160x3 + 28x 6 ${\displaystyle \scriptstyle \operatorname {B} _{6,2}(x)}$ 2688x6 − 3360x4 + 1176x2 − 62 42 ${\displaystyle \scriptstyle \operatorname {B} _{7,2}(x)}$ 768x7 − 1344x5 + 784x3 − 124x 6

## Summary

Many generalizations of the Eulerian, the Stirling and the Bernoulli numbers have been proposed and studied in the literature. We aimed at generalizing these three kind of numbers simultaneously using the most basic relations between these numbers.

Inspired by the connection of the cardinal B-splines (Euler splines) with the Eulerian polynomials we first generalized the Eulerian numbers ${\displaystyle \scriptstyle \left\langle {n \atop k}\right\rangle }$ to

${\displaystyle \left\langle {n \atop k}\right\rangle _{m}={\frac {1}{2}}\sum _{j=0}^{n+1}(-1)^{j}{\binom {n+1}{j}}(m(k-j)+1)^{n}\operatorname {sgn} (m(k-j)+1)}$

with the special value ${\displaystyle \scriptstyle \left\langle {0 \atop 0}\right\rangle _{1}=1.}$ Next we introduced generalized Stirling numbers via the connection between the classical Stirling subset numbers and the Eulerian numbers due to Frobenius.

${\displaystyle {\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}={\frac {1}{m^{k}k!}}\sum _{j=0}^{n}\left\langle {n \atop j}\right\rangle _{m}{\binom {j}{n-k}}}$

Based on that we introduced the generalized Bernoulli numbers

${\displaystyle \operatorname {B} _{n}^{(m)}=\sum _{k=0}^{n}{\frac {(-m)^{k}}{k+1}}k!{\begin{Bmatrix}n\\k\end{Bmatrix}}_{m}.}$

They can be seen as the value of the generalized Bernoulli polynomials at the origin.

${\displaystyle \operatorname {B} _{n,m}(x)=\sum _{k=0}^{n}\sum _{j=0}^{k}\sum _{v=0}^{j}{\frac {(-1)^{n-v}}{(j+1)}}{\binom {n}{k}}{\binom {j}{v}}(m(v-x))^{k}}$