login
In A000120, replace each entry k with the k-th prime and replace 0 with 1.
2

%I #13 Nov 03 2024 19:46:29

%S 1,2,2,3,2,3,3,5,2,3,3,5,3,5,5,7,2,3,3,5,3,5,5,7,3,5,5,7,5,7,7,11,2,3,

%T 3,5,3,5,5,7,3,5,5,7,5,7,7,11,3,5,5,7,5,7,7,11,5,7,7,11,7,11,11,13,2,

%U 3,3,5,3,5,5,7,3,5,5,7,5,7,7,11,3,5,5,7

%N In A000120, replace each entry k with the k-th prime and replace 0 with 1.

%H Michael Gilleland, <a href="/selfsimilar.html">Some Self-Similar Integer Sequences</a>

%F a(n) = A000040(A000120(n)) for n>0.

%F a(n) = A008578(1 + A000120(n)). - _Alois P. Heinz_, Nov 03 2024

%o (PARI) a(n) = if (n==0, 1, prime(hammingweight(n))); \\ _Michel Marcus_, Feb 08 2014

%Y Cf. A000040, A000120, A008578, A055932, A057335.

%K easy,nonn,changed

%O 0,2

%A _Alford Arnold_, Aug 27 2000

%E More terms from _Michel Marcus_, Feb 08 2014