%I #22 Mar 21 2021 12:09:57
%S 1,2,4,5,7,8,10,11,14,16,17,19,20,22,23,25,28,29,31,32,34,35,37,38,41,
%T 43,46,47,49,50,52,55,56,58,59,61,62,64,65,68,70,71,73,74,76,77,79,82,
%U 83,85,86,88,91,92,95,97,98,100,101,103,104,106,109,110,112,113,115,116,118
%N Ternary sieve: delete every 3rd number, then every 9th, 27th, etc.
%C Smarandache calls this a "trinary" sieve. - _N. J. A. Sloane_, Jan 03 2020
%C The asymptotic density of this sequence is Product_{k>=1} (1 - 1/3^k) = 0.560126... (A100220). - _Amiram Eldar_, Mar 21 2021
%H Rémy Sigrist, <a href="/A007951/b007951.txt">Table of n, a(n) for n = 1..25000</a>
%H Florentin Smarandache, <a href="http://www.gallup.unm.edu/~smarandache/OPNS.pdf">Only Problems, Not Solutions!</a>, 4th ed., 1993; Problem 96.
%H <a href="/index/Si#sieve">Index entries for sequences generated by sieves</a>
%o (PARI) v = List([1..118]); t=3; while (#v>=t, forstep (k=#v\t, 1, -1, listpop(v, k*t);); t*=3;); print (v) \\ _Rémy Sigrist_, Jan 05 2020
%Y Cf. A007950, A092418, A100220.
%K nonn
%O 1,2
%A R. Muller