login
Automorphic semiprimes: semiprimes, sp, such that sp is the k-th semiprime and sp ends in k.
1

%I #13 Mar 30 2012 18:40:58

%S 291,24502749,36627829,3547310731,4721984179,461808766011

%N Automorphic semiprimes: semiprimes, sp, such that sp is the k-th semiprime and sp ends in k.

%C Analogy, this sequence is to semiprimes (A001358) as A046883 is to the primes (A000040) or as A035383 is to the squares (A000290) among many others.

%H <a href="/index/Ar#automorphic">Index entries for sequences related to automorphic numbers

%t nextSemiPrime[n_] := Block[{k = n + 1}, While[ Plus @@ Last /@ FactorInteger@ k != 2, k++]; k]; c = 1; k = 4; lst = {}; While[k < 8100000000, If[ Mod[k, 10^Floor[1 + Log10@ c]] == c, AppendTo[lst, k]; Print[{c, k}]]; c++; k = nextSemiPrime@ k]; lst

%t These terms can be crosschecked by: SemiPrimePi[n_] := Sum[ PrimePi[n/Prime@ i] -i + 1, {i, PrimePi@ Sqrt@ n}]

%Y Cf. A001358, A046883, A046883, A186000.

%K hard,nonn,base

%O 1,1

%A _Jonathan Vos Post_ & _Robert G. Wilson v_, Feb 24 2011

%E a(6) from _Donovan Johnson_, Mar 03 2011