OFFSET
0,2
COMMENTS
R(n, n, 0) are the (0-based) harmonic numbers, R(n, n, -1) are the Bernoulli numbers, and R(n, n, 1) is this sequence in its rational form.
FORMULA
EXAMPLE
a(n) are the numerators of the terms on the main diagonal of the triangle:
[0] 1;
[1] 1, 5/2;
[2] 1, 7/2, 19/2;
[3] 1, 11/2, 121/6, 188/3;
[4] 1, 19/2, 95/2, 369/2, 1249/2;
[5] 1, 35/2, 721/6, 1748/3, 35164/15, 125744/15;
[6] 1, 67/2, 639/2, 3877/2, 18533/2, 76317/2, 283517/2;
MAPLE
R := (n, k, x) -> add(add(x^j*binomial(u, j)*(j+1)^n, j=0..u)/(u + 1), u=0..k):
### x = 1 -> this sequence
for n from 0 to 7 do [n], seq(R(n, k, 1), k = 0..n) od;
seq(R(n, n, 1), n = 0..9);
### x = -1 -> Bernoulli(n, 1)
# for n from 0 to 9 do [n], seq(R(n, k, -1), k = 0..n) od;
# seq(R(n, n, -1), n = 0..12); seq(bernoulli(n, 1), n = 0..12);
### x = 0 -> Harmonic numbers
# for n from 0 to 9 do [n], seq(R(n, k, 0), k = 0..n) od;
# seq(R(n, n, 0), n = 0..9); seq(harmonic(n+1), n = 0..9);
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Peter Luschny, May 12 2023
STATUS
approved