OFFSET
0,1
MATHEMATICA
tm[0] = 1; tm[n_?EvenQ] := tm[n] = tm[n/2]; tm[n_] := tm[n] = 3 - tm[(n-1)/2]; a[n_] := ListConvolve[tm /@ Range[0, n], Prime /@ Range[n+1]] // First; Table[a[n], {n, 0, 38}] (* Jean-François Alcover, Nov 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved