A165805 Integers that start a trajectory x -> A008619(x) which contains only primes until terminating at 2 or 3.
2, 3, 4, 5, 6, 7, 10, 11, 14, 15, 22, 23, 46, 47, 94, 95
Offset: 1
Examples
The trajectories of starting with numbers from 91 to 96 are 91 -> 45 -> 22 -> 11 -> 5 -> 2 92 -> 46 -> 23 -> 11 -> 5 -> 2 93 -> 46 -> 23 -> 11 -> 5 -> 2 94 -> 47 -> 23 -> 11 -> 5 -> 2 95 -> 47 -> 23 -> 11 -> 5 -> 2 96 -> 48 -> 24 -> 12 -> 6 -> 3 The trajectories starting at 91 to 93 and 96 contain composites 45, 46 or 48 and their initial numbers do not qualify for the sequence. The trajectories starting at 94 and 95 contain only primes (47, 23, 11, 5, 2) and their two initial integers 94 and 95 are added to the sequence.
Programs
-
Mathematica
f[n_]:=Module[{k=n},While[k>3,k=k-Ceiling[k/2];If[ !PrimeQ[k],Break[]]]; PrimeQ[k]]; lst={};Do[If[f[n],AppendTo[lst,n]],{n,7!}];lst
Extensions
Edited by R. J. Mathar, Sep 29 2009
Comments