cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A046307 Numbers that are divisible by at least 7 primes (counted with multiplicity).

This page as a plain text file.
%I A046307 #15 Aug 23 2024 16:31:35
%S A046307 128,192,256,288,320,384,432,448,480,512,576,640,648,672,704,720,768,
%T A046307 800,832,864,896,960,972,1008,1024,1056,1080,1088,1120,1152,1200,1216,
%U A046307 1248,1280,1296,1344,1408,1440,1458,1472,1512,1536,1568,1584,1600,1620
%N A046307 Numbers that are divisible by at least 7 primes (counted with multiplicity).
%H A046307 Harvey P. Dale, <a href="/A046307/b046307.txt">Table of n, a(n) for n = 1..1000</a>
%F A046307 Product p_i^e_i with Sum e_i >= 7.
%t A046307 Select[Range[2000],PrimeOmega[#]>6&] (* _Harvey P. Dale_, Nov 16 2012 *)
%o A046307 (PARI) is(n)=bigomega(n)>6 \\ _Charles R Greathouse IV_, Sep 17 2015
%o A046307 (Python)
%o A046307 from math import prod, isqrt
%o A046307 from sympy import primerange, integer_nthroot, primepi
%o A046307 def A046307(n):
%o A046307     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)))
%o A046307     def f(x): return int(n+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,7)))
%o A046307     kmin, kmax = 1,2
%o A046307     while f(kmax) >= kmax:
%o A046307         kmax <<= 1
%o A046307     while True:
%o A046307         kmid = kmax+kmin>>1
%o A046307         if f(kmid) < kmid:
%o A046307             kmax = kmid
%o A046307         else:
%o A046307             kmin = kmid
%o A046307         if kmax-kmin <= 1:
%o A046307             break
%o A046307     return kmax # _Chai Wah Wu_, Aug 23 2024
%Y A046307 Cf. A046308.
%K A046307 nonn
%O A046307 1,1
%A A046307 _Patrick De Geest_, Jun 15 1998