1, 0, 2, 0, 3, 4, 0, 5, 6, 8, 0, 7, 9, 12, 16, 0, 11, 10, 18, 24, 32, 0, 13, 14, 20, 36, 48, 64, 0, 17, 15, 27, 40, 72, 96, 128, 0, 19, 21, 28, 54, 80, 144, 192, 256, 0, 23, 22, 30, 56, 108, 160, 288, 384, 512, 0, 29, 25, 42, 60, 112, 216, 320, 576, 768, 1024
Offset: 0
A120040
Number of 9-almost primes 9ap such that 2^n < 9ap <= 2^(n+1).
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 5, 8, 22, 47, 102, 232, 482, 1062, 2217, 4738, 10051, 21083, 44315, 92608, 193824, 402936, 838879, 1739794, 3605077, 7457977, 15404202, 31781036, 65481376, 134777594, 277096118, 569173839, 1168002568, 2394834166
Offset: 0
(2^9, 2^10] there is one semiprime, namely 768. 512 was counted in the previous entry.
Cf.
A046312,
A036378,
A120033,
A120034,
A120035,
A120036,
A120037,
A120038,
A120039,
A120040,
A120041,
A120042,
A120043.
-
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 = Table[AlmostPrimePi[9, 2^n], {n, 0, 30}]; Rest@t - Most@t
A113741
Pierpont 9-almost primes. 9-almost primes of form (2^K)*(3^L)+1.
Original entry on oeis.org
1601009443167990625, 1897492673384285185, 39346408075296537575425, 46005119909369701466113, 221073919720733357899777, 2153693963075557766310748, 3925770232266214525108225
Offset: 1
a(1) = 1601009443167990625 = (2^5)*(3^35)+1 = 5 * 5 * 5 * 5 * 5 * 7 * 11 * 241 * 27608073601.
a(2) = 1897492673384285185 = (2^10)*(3^32)+1 = 5 * 13 * 13 * 13 * 41 * 41 * 373 * 2357 * 116881.
A005109 gives the Pierpont primes, which are primes of the form (2^K)*(3^L)+1.
A113432 gives the Pierpont semiprimes, 2-almost primes of the form (2^K)*(3^L)+1.
A112797 gives the Pierpont 3-almost primes, of the form (2^K)*(3^L)+1.
A111344 gives the Pierpont 4-almost primes, of the form (2^K)*(3^L)+1.
A111345 gives the Pierpont 5-almost primes, of the form (2^K)*(3^L)+1.
A111346 gives the Pierpont 6-almost primes, of the form (2^K)*(3^L)+1.
A113739 gives the Pierpont 7-almost primes, of the form (2^K)*(3^L)+1.
A113740 gives the Pierpont 8-almost primes, of the form (2^K)*(3^L)+1.
-
list(lim)=my(v=List(), L=lim\1-1); for(e=0, logint(L, 3), my(t=3^e); while(t<=L, if(bigomega(t+1)==9, listput(v, t+1)); t*=2)); Set(v) \\ Charles R Greathouse IV, Feb 02 2017
A179702
Numbers of the form p^4*q^5 where p and q are two distinct primes.
Original entry on oeis.org
2592, 3888, 20000, 50000, 76832, 151875, 253125, 268912, 468512, 583443, 913952, 1361367, 2576816, 2672672, 3557763, 4170272, 5940688, 6940323, 7503125, 8954912, 10504375, 13045131, 20295603, 22632992, 22717712, 29552672, 30074733
Offset: 1
Cf.
A006881,
A007304,
A065036,
A085986,
A085987,
A092759,
A178739,
A179642,
A179643,
A179644,
A179645,
A179646,
A179664,
A179665,
A179666,
A179667,
A179668,
A179669,
A179670,
A179671,
A179672,
A179688,
A179689,
A179690,
A179691,
A179692,
A179693,
A179694,
A179695,
A179696,
A179698,
A179699,
A179700.
-
fQ[n_] := Sort[Last /@ FactorInteger @n] == {4, 5}; Select[ Range@ 31668000, fQ] (* fixed by Robert G. Wilson v, Aug 26 2010 *)
lst = {}; Do[ If[p != q, AppendTo[lst, Prime@p^4*Prime@q^5]], {p, 12}, {q, 10}]; Take[ Sort@ Flatten@ lst, 27] (* Robert G. Wilson v, Aug 26 2010 *)
Take[Union[First[#]^4 Last[#]^5&/@Flatten[Permutations/@Subsets[ Prime[ Range[30]],{2}],1]],30] (* Harvey P. Dale, Jan 01 2012 *)
-
list(lim)=my(v=List(),t);forprime(p=2, (lim\16)^(1/5), t=p^5;forprime(q=2, (lim\t)^(1/4), if(p==q, next);listput(v,t*q^4))); vecsort(Vec(v)) \\ Charles R Greathouse IV, Jul 20 2011
-
from sympy import primepi, integer_nthroot, primerange
def A179702(n):
def bisection(f,kmin=0,kmax=1):
while f(kmax) > kmax: kmax <<= 1
kmin = kmax >> 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
def f(x): return n+x-sum(primepi(integer_nthroot(x//p**5,4)[0]) for p in primerange(integer_nthroot(x,5)[0]+1))+primepi(integer_nthroot(x,9)[0])
return bisection(f,n,n) # Chai Wah Wu, Mar 27 2025
A125149
a(n) is the least k such that the n-almost prime count is positive and equal to the (n-1)-almost prime count. a(0) = 1.
Original entry on oeis.org
1, 2, 10, 15495, 151165506066
Offset: 0
a(1) = 2 since 1 has no prime factors and 2 has one prime factor, therefore prime factor counts of 0 and 1 occur equally often in the first 2 integers.
a(2) = 10 since there are 4 primes {2, 3, 5 & 7} and 4 semiprimes {4, 6, 9 & 10} less than or equal to 10.
a(4) = 151165506066 since there are 32437255807 4-almost primes and 3-almost primes <= a(4).
Sequences listing r-almost primes, that is, k such that
A001222(k) = r:
A000040 (r = 1),
A001358 (r = 2),
A014612 (r = 3),
A014613 (r = 4),
A014614 (r = 5),
A046306 (r = 6),
A046308 (r = 7),
A046310 (r = 8),
A046312 (r = 9),
A046314 (r = 10),
A069272 (r = 11),
A069273 (r = 12),
A069274 (r = 13),
A069275 (r = 14),
A069276 (r = 15),
A069277 (r = 16),
A069278 (r = 17),
A069279 (r = 18),
A069280 (r = 19),
A069281 (r = 20).
-
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 *)
f[n_] := Block[{k = 2^n}, While[AlmostPrimePi[n, k] < AlmostPrimePi[n - 1, k], k++ ]; k];
Changed 33 to 34 in a comment. -
T. D. Noe, Aug 11 2010
A046311
Numbers that are divisible by at least 9 primes (counted with multiplicity).
Original entry on oeis.org
512, 768, 1024, 1152, 1280, 1536, 1728, 1792, 1920, 2048, 2304, 2560, 2592, 2688, 2816, 2880, 3072, 3200, 3328, 3456, 3584, 3840, 3888, 4032, 4096, 4224, 4320, 4352, 4480, 4608, 4800, 4864, 4992, 5120, 5184, 5376, 5632, 5760, 5832, 5888, 6048, 6144
Offset: 1
-
Select[Range[6200],PrimeOmega[#]>8&] (* Harvey P. Dale, May 20 2013 *)
-
is(n)=bigomega(n)>8 \\ Charles R Greathouse IV, Sep 17 2015
-
from math import isqrt, prod
from sympy import primerange, integer_nthroot, primepi
def A046311(n):
def g(x,a,b,c,m): yield from (((d,) for d in enumerate(primerange(b,isqrt(x//c)+1),a)) if m==2 else (((a2,b2),)+d for a2,b2 in enumerate(primerange(b,integer_nthroot(x//c,m)[0]+1),a) for d in g(x,a2,b2,c*b2,m-1)))
def f(x): return int(n+1+primepi(x)+sum(sum(primepi(x//prod(c[1] for c in a))-a[-1][0] for a in g(x,0,1,1,i)) for i in range(2,9)))
def bisection(f,kmin=0,kmax=1):
while f(kmax) > kmax: kmax <<= 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
return bisection(f,n,n) # Chai Wah Wu, Sep 09 2024
A046335
Palindromes with exactly 9 prime factors (counted with multiplicity).
Original entry on oeis.org
4224, 6336, 21312, 23232, 27072, 213312, 276672, 618816, 2133312, 2177712, 2198912, 2308032, 2513152, 2536352, 2545452, 2551552, 2553552, 2572752, 2597952, 2725272, 2745472, 2747472, 2774772, 2970792, 2994992, 4099904
Offset: 1
Comments