login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A033640
Base 3 digital convolution sequence.
3
1, 1, 2, 1, 3, 7, 6, 20, 52, 6, 26, 104, 32, 162, 460, 356, 1438, 4048, 712, 3588, 15272, 5012, 27460, 90476, 64944, 300816, 912472, 90476, 155420, 611656, 1067892, 1770024, 4763360, 4151704, 14746316, 39566064, 8915064, 27813084, 109938548, 76294212, 222960908
OFFSET
0,3
LINKS
EXAMPLE
Suppose base = 3 and a(0)..a(13) are 1 1 2 1 3 7 6 20 52 6 26 104 32 162. In base 3, 14 = 112, so we convolve the last three terms with 1, 1, 2 to obtain 104*1+32*1+162*2 = 460.
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, (l->
add(l[i]*a(n-i), i=1..nops(l)))(convert(n, base, 3)))
end:
seq(a(n), n=0..40); # Alois P. Heinz, Apr 14 2021
KEYWORD
base,nonn
STATUS
approved