Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #22 Sep 02 2024 13:04:40
%S 1,2,7,41,403,6960,196527,13405218,1566662070,304256578608,
%T 113065670502087,78229220671714544,101598769325059903837,
%U 293965406612712860369329,1613982664799943153033715558
%N Partial product of n-th n-almost prime (A101695) divided by product of the first n primes, rounded down.
%F a(n) = floor( Product_{i=1..n} A101695(i) / A000040(i) ).
%e a(1) = floor(2/2) = floor(1) = 1.
%e a(2) = floor(12/6) = floor(2) = 2.
%e a(3) = floor(216/30) = floor(7.2) = 7.
%e a(4) = floor(8640/210) = floor(41.1428571) = 41.
%e a(5) = floor(933120/2310) = floor(403.948052) = 403.
%e a(6) = floor(209018880/30030) = floor(6960.33566) = 6960.
%t AlmostPrimePi[k_Integer, n_] := Module[{a, i}, a[0] = 1; If[k == 1, PrimePi[n], Sum[PrimePi[n/Times @@ Prime[Array[a, k - 1]]] - a[k - 1] + 1, Evaluate[ Sequence @@ Table[{a[i], a[i - 1], PrimePi[(n/Times @@ Prime[Array[a, i - 1]])^(1/(k - i + 1))]}, {i, k - 1}]]]]]; (* _Eric W. Weisstein_, Feb 07 2006 *)
%t AlmostPrime[k_, n_] := Block[{e = Floor[Log[2, n]+k], a, b}, a = 2^e; Do[b = 2^p; While[ AlmostPrimePi[k, a] < n, a = a + b]; a = a - b/2, {p, e, 0, -1}]; a + b/2]; AlmostPrime[1, 1] = 2;
%t t = Table[ AlmostPrime[n, n], {n, 20}]; Floor[Rest@ FoldList[Times, 1, t]/Rest@ FoldList[Times, 1, Prime@ Range@ 20]] (* _Robert G. Wilson v_, Aug 31 2007 *)
%Y Cf. A101695, A000040.
%K easy,nonn,less
%O 1,2
%A _Jonathan Vos Post_, Oct 24 2006
%E More terms from _Robert G. Wilson v_, Aug 31 2007