I am working on a problem where I found that the system I am working with follows OEIS A094705 which is the: "Convolution of Jacobsthal(n) and 3^n". So I have tried using the recursive formula Jacobsthal(n) and 3^n (also Jacobsthal(n-1) and 3^(n-1) to make sure it was not a list issue on the starting term of the series), also the respective lists in the format:
{0, 1, 1, 3, 5, 11, 21, 43, 85, 171}
and,
{1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683}
I would like to use the previous two sequences to generate OEIS A094705:
{0, 1, 4, 15, 50, 161, 504, 1555, 4750, 1442}
I have tried, for example, the following three methods when using ListConvolve
:
ListConvolve[
{0, 1, 1, 3, 5, 11, 21, 43, 85, 171},
{1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683}
]
(*Out {14421} *)
ListConvolve[
{0, 1, 1, 3, 5, 11, 21, 43, 85, 171},
{1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683},
-1
]
(* Out:
{14421,43263,70741,153175,282381,551903,1006181,1778535,2796541,3370543}
*)
ListConvolve[
{0, 1, 1, 3, 5, 11, 21, 43, 85, 171},
{1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683},
1
]
(* Out:
{43263, 70741, 153175, 282381, 551903, 1006181, 1778535, 2796541, 3370543, 14421}
*)
I really hope that math concept convolution and Mathematica Convolve
, DiscreteConvolve
and ListConvolve
are the same and not just using similar words.