OFFSET
0,2
COMMENTS
Number of 13-subsequences of [ 1, n ] with just 6 contiguous pairs.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
G.f.: (1+6*x)/(1-x)^8.
E.g.f.: (7! +9360*x +20520*x^2 +15000*x^3 +4650*x^4 +666*x^5 +43*x^6 + x^7)*exp(x)/7!. - G. C. Greubel, Aug 29 2019
From Amiram Eldar, Jan 28 2022: (Start)
Sum_{n>=0} 1/a(n) = Pi^2 - 5269/600.
Sum_{n>=0} (-1)^n/a(n) = Pi^2/2 - 512*log(2)/5 + 40189/600. (End)
MAPLE
seq((n+1)*binomial(n+6, 6), n=0..30); # Zerinvary Lajos, Oct 19 2006
MATHEMATICA
Table[(n+1)*Binomial[n+6, 6], {n, 0, 30}] (* G. C. Greubel, Aug 29 2019 *)
PROG
(Haskell)
a027818 n = (n + 1) * a007318' (n + 6) 6
-- Reinhard Zumkeller, Aug 31 2014
(PARI) a(n) = (n+1)*binomial(n+6, 6) \\ Charles R Greathouse IV, Jun 11 2015
(Magma) [(n+1)*Binomial(n+6, 6): n in [0..30]]; // G. C. Greubel, Aug 29 2019
(Sage) [(n+1)*binomial(n+6, 6) for n in (0..30)] # G. C. Greubel, Aug 29 2019
(GAP) List([0..30], n-> (n+1)*Binomial(n+6, 6)); # G. C. Greubel, Aug 29 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Thi Ngoc Dinh (via R. K. Guy)
STATUS
approved