|
|
A179903
|
|
(1, 3, 5, 7, 9, ...) convolved with (1, 0, 3, 5, 7, 9, ...).
|
|
1
|
|
|
1, 3, 8, 21, 46, 87, 148, 233, 346, 491, 672, 893, 1158, 1471, 1836, 2257, 2738, 3283, 3896, 4581, 5342, 6183, 7108, 8121, 9226, 10427, 11728, 13133, 14646, 16271, 18012, 19873, 21858, 23971, 26216, 28597, 31118, 33783, 36596, 39561, 42682, 45963
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 + 3*x + 8*x^2 + 21*x^3 + ...) = (1 + 3*x + 5*x^2 + 7*x^3 + 9*x^4 + ...) * (1 + 3*x^2 + 5*x^3 + 7*x^4 + 9*x^5 + ...).
G.f.: -(1 + x)*(x^3 - 4*x^2 + 2*x - 1)/(x - 1)^4. (End)
|
|
EXAMPLE
|
a(5) = 46 = (9, 7, 5, 3, 1) dot (1, 0, 3, 5, 7) = 9 + 0 + 15 + 15 + 7.
|
|
MATHEMATICA
|
CoefficientList[Series[-(1+x)*(x^3-4*x^2+2*x-1)/(x-1)^4, {x, 0, 50}], x] (* Vincenzo Librandi, Jul 04 2012 *)
Join[{1}, Table[ListConvolve[Range[1, 2n+1, 2], Join[{1, 0}, Range[3, 2n-1, 2]]], {n, 50}]// Flatten] (* or *) LinearRecurrence[{4, -6, 4, -1}, {1, 3, 8, 21, 46}, 50] (* Harvey P. Dale, Jan 30 2023 *)
|
|
PROG
|
(Magma) I:=[1, 3, 8, 21, 46]; [n le 5 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..50]]; // Vincenzo Librandi, Jul 04 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|