cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A029888 Convolution of Thue-Morse sequence A001285 with primes.

This page as a plain text file.
%I A029888 #8 Jul 08 2025 19:24:42
%S A029888 2,7,15,25,42,62,87,116,152,192,241,296,356,425,491,569,660,754,851,
%T A029888 960,1072,1179,1311,1447,1584,1745,1899,2055,2220,2388,2573,2778,2992,
%U A029888 3188,3415,3640,3868,4125,4383
%N A029888 Convolution of Thue-Morse sequence A001285 with primes.
%t A029888 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 *)
%K A029888 nonn
%O A029888 0,1
%A A029888 _N. J. A. Sloane_