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.

Showing 1-10 of 15 results. Next

A001221 Number of distinct primes dividing n (also called omega(n)).

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 3, 1, 2, 2, 1, 2, 3, 1, 2, 2, 3, 1, 2, 1, 2, 2, 2, 2, 3, 1, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1, 3, 1, 2, 3, 2, 1, 2, 1, 3, 2
Offset: 1

Views

Author

Keywords

Comments

From Peter C. Heinig (algorithms(AT)gmx.de), Mar 08 2008: (Start)
This is also the number of maximal ideals of the ring (Z/nZ,+,*). Since every finite integral domain must be a field, every prime ideal of Z/nZ is a maximal ideal and since in general each maximal ideal is prime, there are just as many prime ideals as maximal ones in Z/nZ, so the sequence gives the number of prime ideals of Z/nZ as well.
The reason why this number is given by the sequence is that the ideals of Z/nZ are precisely the subgroups of (Z/nZ,+). Hence for an ideal to be maximal it has form a maximal subgroup of (Z/nZ,+) and this is equivalent to having prime index in (Z/nZ) and this is equivalent to being generated by a single prime divisor of n.
Finally, all the groups arising in this way have different orders, hence are different, so the number of maximal ideals equals the number of distinct primes dividing n. (End)
Equals double inverse Mobius transform of A143519, where A051731 = the inverse Mobius transform. - Gary W. Adamson, Aug 22 2008
a(n) is the number of unitary prime power divisors of n (not including 1). - Jaroslav Krizek, May 04 2009 [corrected by Ilya Gutkovskiy, Oct 09 2019]
Sum_{d|n} 2^(-A001221(d) - A001222(n/d)) = Sum_{d|n} 2^(-A001222(d) - A001221(n/d)) = 1 (see Dressler and van de Lune link). - Michel Marcus, Dec 18 2012
Up to 2*3*5*7*11*13*17*19*23*29 - 1 = 6469693230 - 1, also the decimal expansion of the constant 0.01111211... = Sum_{k>=0} 1/(10 ^ A000040(k) - 1) (see A073668). - Eric Desbiaux, Jan 20 2014
The average order of a(n): Sum_{k=1..n} a(k) ~ Sum_{k=1..n} log log k. - Daniel Forgues, Aug 13-16 2015
From Peter Luschny, Jul 13 2023: (Start)
We can use A001221 and A001222 to classify the positive integers as follows.
A001222(n) = A001221(n) = 0 singles out {1}.
Restricting to n > 1:
A001222(n)^A001221(n) = 1: A000040, prime numbers.
A001221(n)^A001222(n) = 1: A246655, prime powers.
A001222(n)^A001221(n) > 1: A002808, the composite numbers.
A001221(n)^A001222(n) > 1: A024619, complement of A246655.
n^(A001222(n) - A001221(n)) = 1: A144338, products of distinct primes. (End)
Inverse Möbius transform of the characteristic function of primes (A010051). - Wesley Ivan Hurt, Jun 22 2024
Dirichlet convolution of A010051(n) and 1. - Wesley Ivan Hurt, Jul 15 2025

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 844.
  • G. H. Hardy, Ramanujan: twelve lectures on subjects suggested by his life and work, Cambridge, University Press, 1940, pp. 48-57.
  • J. Peters, A. Lodge and E. J. Ternouth, E. Gifford, Factor Table (n<100000) (British Association Mathematical Tables Vol.V), Burlington House/Cambridge University Press London 1935.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001222 (primes counted with multiplicity), A046660, A285577, A346617. Partial sums give A013939.
Sum of the k-th powers of the primes dividing n for k=0..10: this sequence (k=0), A008472 (k=1), A005063 (k=2), A005064 (k=3), A005065 (k=4), A351193 (k=5), A351194 (k=6), A351195 (k=7), A351196 (k=8), A351197 (k=9), A351198 (k=10).
Sequences of the form n^k * Sum_{p|n, p prime} 1/p^k for k=0..10: this sequence (k=0), A069359 (k=1), A322078 (k=2), A351242 (k=3), A351244 (k=4), A351245 (k=5), A351246 (k=6), A351247 (k=7), A351248 (k=8), A351249 (k=9), A351262 (k=10).

Programs

  • Haskell
    import Math.NumberTheory.Primes.Factorisation (factorise)
    a001221 = length . snd . unzip . factorise
    -- Reinhard Zumkeller, Nov 28 2015
    
  • Julia
    using Nemo
    function NumberOfPrimeFactors(n; distinct=true)
        distinct && return length(factor(ZZ(n)))
        sum(e for (p, e) in factor(ZZ(n)); init=0)
    end
    println([NumberOfPrimeFactors(n) for n in 1:60]) # Peter Luschny, Jan 02 2024
  • Magma
    [#PrimeDivisors(n): n in [1..120]]; // Bruno Berselli, Oct 15 2021
    
  • Maple
    A001221 := proc(n) local t1, i; if n = 1 then return 0 else t1 := 0; for i to n do if n mod ithprime(i) = 0 then t1 := t1 + 1 end if end do end if; t1 end proc;
    A001221 := proc(n) nops(numtheory[factorset](n)) end proc: # Emeric Deutsch
    omega := n -> NumberTheory:-NumberOfPrimeFactors(n, 'distinct'): # Peter Luschny, Jun 15 2025
  • Mathematica
    Array[ Length[ FactorInteger[ # ] ]&, 100 ]
    PrimeNu[Range[120]]  (* Harvey P. Dale, Apr 26 2011 *)
  • MuPAD
    func(nops(numlib::primedivisors(n)), n):
    
  • MuPAD
    numlib::omega(n)$ n=1..110 // Zerinvary Lajos, May 13 2008
    
  • PARI
    a(n)=omega(n)
    
  • Python
    from sympy.ntheory import primefactors
    print([len(primefactors(n)) for n in range(1, 1001)])  # Indranil Ghosh, Mar 19 2017
    
  • Sage
    def A001221(n): return sum(1 for p in divisors(n) if is_prime(p))
    [A001221(n) for n in (1..80)] # Peter Luschny, Feb 01 2012
    
  • SageMath
    [sloane.A001221(n) for n in (1..111)] # Giuseppe Coppoletta, Jan 19 2015
    
  • SageMath
    [gp.omega(n) for n in range(1,101)] # G. C. Greubel, Jul 13 2024
    

Formula

G.f.: Sum_{k>=1} x^prime(k)/(1-x^prime(k)). - Benoit Cloitre, Apr 21 2003; corrected by Franklin T. Adams-Watters, Sep 01 2009
Dirichlet generating function: zeta(s)*primezeta(s). - Franklin T. Adams-Watters, Sep 11 2005
Additive with a(p^e) = 1.
a(1) = 0, a(p) = 1, a(pq) = 2, a(pq...z) = k, a(p^k) = 1, where p, q, ..., z are k distinct primes and k natural numbers. - Jaroslav Krizek, May 04 2009
a(n) = log_2(Sum_{d|n} mu(d)^2). - Enrique Pérez Herrero, Jul 09 2012
a(A002110(n)) = n, i.e., a(prime(n)#) = n. - Jean-Marc Rebert, Jul 23 2015
a(n) = A091221(A091202(n)) = A069010(A156552(n)). - Antti Karttunen, circa 2004 & Mar 06 2017
L.g.f.: -log(Product_{k>=1} (1 - x^prime(k))^(1/prime(k))) = Sum_{n>=1} a(n)*x^n/n. - Ilya Gutkovskiy, Jul 30 2018
a(n) = log_2(Sum_{k=1..n} mu(gcd(n,k))^2/phi(n/gcd(n,k))) = log_2(Sum_{k=1..n} mu(n/gcd(n,k))^2/phi(n/gcd(n,k))), where phi = A000010 and mu = A008683. - Richard L. Ollerton, May 13 2021
Sum_{k=1..n} 2^(-a(gcd(n,k)) - A001222(n/gcd(n,k)))/phi(n/gcd(n,k)) = Sum_{k=1..n} 2^(-A001222(gcd(n,k)) - a(n/gcd(n,k)))/phi(n/gcd(n,k)) = 1, where phi = A000010. - Richard L. Ollerton, May 13 2021
a(n) = A005089(n) + A005091(n) + A059841(n) = A005088(n) +A005090(n) +A079978(n). - R. J. Mathar, Jul 22 2021
From Wesley Ivan Hurt, Jun 22 2024: (Start)
a(n) = Sum_{p|n, p prime} 1.
a(n) = Sum_{d|n} c(d), where c = A010051. (End)

A007774 Numbers that are divisible by exactly 2 different primes; numbers n with omega(n) = A001221(n) = 2.

Original entry on oeis.org

6, 10, 12, 14, 15, 18, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 38, 39, 40, 44, 45, 46, 48, 50, 51, 52, 54, 55, 56, 57, 58, 62, 63, 65, 68, 69, 72, 74, 75, 76, 77, 80, 82, 85, 86, 87, 88, 91, 92, 93, 94, 95, 96, 98, 99, 100, 104, 106, 108, 111, 112, 115, 116, 117, 118
Offset: 1

Views

Author

Luke Pebody (ltp1000(AT)hermes.cam.ac.uk)

Keywords

Comments

Every group of order p^a * q^b is solvable (Burnside, 1904). - Franz Vrabec, Sep 14 2008
Characteristic function for a(n): floor(omega(n)/2) * floor(2/omega(n)) where omega(n) is the number of distinct prime factors of n. - Wesley Ivan Hurt, Jan 10 2013

Examples

			20 is a term because 20 = 2^2*5 with two distinct prime divisors 2, 5.
		

Crossrefs

Subsequence of A085736; A256617 is a subsequence.
Row 2 of A125666.
Cf. A001358 (products of two primes), A014612 (products of three primes), A014613 (products of four primes), A014614 (products of five primes), where the primes are not necessarily distinct.
Cf. A006881, A046386, A046387, A067885 (product of exactly 2, 4, 5, 6 distinct primes respectively).

Programs

  • Haskell
    a007774 n = a007774_list !! (n-1)
    a007774_list = filter ((== 2) . a001221) [1..]
    -- Reinhard Zumkeller, Aug 02 2012
    
  • Maple
    with(numtheory,factorset):f := proc(n) if nops(factorset(n))=2 then RETURN(n) fi; end;
  • Mathematica
    Select[Range[0,6! ],Length[FactorInteger[ # ]]==2&] (* Vladimir Joseph Stephan Orlovsky, Apr 22 2010 *)
    Select[Range[120],PrimeNu[#]==2&] (* Harvey P. Dale, Jun 03 2020 *)
  • PARI
    is(n)=omega(n)==2 \\ Charles R Greathouse IV, Apr 01 2013
    
  • Python
    from sympy import primefactors
    A007774_list = [n for n in range(1,10**5) if len(primefactors(n)) == 2] # Chai Wah Wu, Aug 23 2021

Extensions

Expanded definition. - N. J. A. Sloane, Aug 22 2021

A083140 Sieve of Eratosthenes arranged as an array and read by antidiagonals in the up direction; n-th row has property that smallest prime factor is prime(n).

Original entry on oeis.org

2, 3, 4, 5, 9, 6, 7, 25, 15, 8, 11, 49, 35, 21, 10, 13, 121, 77, 55, 27, 12, 17, 169, 143, 91, 65, 33, 14, 19, 289, 221, 187, 119, 85, 39, 16, 23, 361, 323, 247, 209, 133, 95, 45, 18, 29, 529, 437, 391, 299, 253, 161, 115, 51, 20, 31, 841, 667, 551, 493, 377, 319, 203, 125, 57, 22
Offset: 2

Views

Author

Yasutoshi Kohmoto, Jun 05 2003

Keywords

Comments

A permutation of natural numbers >= 2.
The proportion of integers in the n-th row of the array is given by A005867(n-1)/A002110(n) = A038110(n)/A038111(n). - Peter Kagey, Jun 03 2019, based on comments by Jamie Morken and discussion with Tom Hanlon.
The proportion of the integers after the n-th row of the array is given by A005867(n)/A002110(n). - Tom Hanlon, Jun 08 2019

Examples

			Array begins:
   2   4   6   8  10  12  14  16  18  20  22  24 .... (A005843 \ {0})
   3   9  15  21  27  33  39  45  51  57  63  69 .... (A016945)
   5  25  35  55  65  85  95 115 125 145 155 175 .... (A084967)
   7  49  77  91 119 133 161 203 217 259 287 301 .... (A084968)
  11 121 143 187 209 253 319 341 407 451 473 517 .... (A084969)
  13 169 221 247 299 377 403 481 533 559 611 689 .... (A084970)
		

Crossrefs

Cf. A083141 (main diagonal), A083221 (transpose), A004280, A038179, A084967, A084968, A084969, A084970, A084971.
Arrays of integers grouped into rows by various criteria:
by greatest prime factor: A125624,
by lowest prime factor: this sequence (upward antidiagonals), A083221 (downward antidiagonals),
by number of distinct prime factors: A125666,
by number of prime factors counted with multiplicity: A078840,
by prime signature: A095904,
by ordered prime signature: A096153,
by number of divisors: A119586,
by number of 1's in binary expansion: A066884 (upward), A067576 (downward),
by distance to next prime: A192179.

Programs

  • Mathematica
    a = Join[ {Table[2n, {n, 1, 12}]}, Table[ Take[ Prime[n]*Select[ Range[100], GCD[ Prime[n] #, Product[ Prime[i], {i, 1, n - 1}]] == 1 &], 12], {n, 2, 12}]]; Flatten[ Table[ a[[i, n - i]], {n, 2, 12}, {i, n - 1, 1, -1}]]
    (* second program: *)
    rows = 12; Clear[T]; Do[For[m = p = Prime[n]; k = 1, k <= rows, m += p, If[ FactorInteger[m][[1, 1]] == p, T[n, k++] = m]], {n, rows}]; Table[T[n - k + 1, k], {n, rows}, {k, n}] // Flatten (* Jean-François Alcover, Mar 08 2016 *)

Extensions

More terms from Hugo Pfoertner and Robert G. Wilson v, Jun 13 2003

A033992 Numbers that are divisible by exactly three different primes.

Original entry on oeis.org

30, 42, 60, 66, 70, 78, 84, 90, 102, 105, 110, 114, 120, 126, 130, 132, 138, 140, 150, 154, 156, 165, 168, 170, 174, 180, 182, 186, 190, 195, 198, 204, 220, 222, 228, 230, 231, 234, 238, 240, 246, 252, 255, 258, 260, 264, 266, 270, 273, 276, 280, 282, 285, 286
Offset: 1

Views

Author

Keywords

Comments

This sequence and A000977 are identical through their first 32 terms, but A000977(33) = 210. [Comment edited by Jon E. Schoenfield, Dec 30 2014]

Examples

			220 = 2*2*5*11 is here but 210 = 2*3*5*7 is not; compare A000977.
		

Crossrefs

A225228 is a subsequence.
Row 3 of A125666.

Programs

  • Haskell
    a033992 n = a033992_list !! (n-1)
    a033992_list = filter ((== 3) . a001221) [1..]
    -- Reinhard Zumkeller, May 03 2013
    
  • Maple
    A033992 := proc(n)
    if (nops(numtheory[factorset](n)) = 3) then
       RETURN(n)
    fi: end:  seq(A033992(n), n=1..500); # Jani Melik, Feb 24 2011
  • Mathematica
    Select[Range[300],PrimeNu[#]==3&] (* Harvey P. Dale, May 01 2013 *)
  • PARI
    is(n)=omega(n)==3 \\ Charles R Greathouse IV, Apr 28 2015
    
  • PARI
    A246655(lim)=my(v=List(primes([2,lim\=1]))); for(e=2,logint(lim,2), forprime(p=2,sqrtnint(lim,e), listput(v,p^e))); Set(v)
    list(lim,pr=3)=if(pr==1, return(A246655(lim))); my(v=List(),pr1=pr-1,mx=prod(i=1,pr1,prime(i))); forprime(p=prime(pr),lim\mx, my(u=list(lim\p,pr1)); for(i=1,#u,listput(v,p*u[i]))); Set(v) \\ Charles R Greathouse IV, Feb 03 2023

Formula

omega(a(n)) = A001221(a(n)) = 3. - Jonathan Vos Post, Sep 20 2005
a(n) ~ 2n log n / (log log n)^2. - Charles R Greathouse IV, Jul 28 2016

A051270 Numbers that are divisible by exactly 5 different primes.

Original entry on oeis.org

2310, 2730, 3570, 3990, 4290, 4620, 4830, 5460, 5610, 6006, 6090, 6270, 6510, 6630, 6930, 7140, 7410, 7590, 7770, 7854, 7980, 8190, 8580, 8610, 8778, 8970, 9030, 9240, 9282, 9570, 9660, 9690, 9870, 10010, 10230, 10374, 10626, 10710, 10920, 11130, 11220, 11310
Offset: 1

Views

Author

Keywords

Examples

			2730 = 2*3*5*7*13 is the first nontrivial 5-prime factor number following the 5th primorial, 2310 = 2*3*5*7*11.
		

Crossrefs

A046303 is a subsequence.
Row 5 of A125666.

Programs

  • Maple
    A051270 := proc(n)
        option remember;
        local a;
        if n = 1 then
            2*3*5*7*11 ;
        else
            for a from procname(n-1)+1 do
                if A001221(a)= 5 then
                    return a;
                end if;
            end do:
        end if;
    end proc: # R. J. Mathar, Oct 13 2019
  • Mathematica
    Select[Range[12000],PrimeNu[#]==5&] (* Harvey P. Dale, Feb 13 2012 *)
  • PARI
    is(n)=omega(n)==5 \\ Charles R Greathouse IV, Apr 29 2015
    
  • PARI
    A246655(lim)=my(v=List(primes([2,lim\=1]))); for(e=2,logint(lim,2), forprime(p=2,sqrtnint(lim,e), listput(v,p^e))); Set(v)
    list(lim,pr=5)=if(pr==1, return(A246655(lim))); my(v=List(),pr1=pr-1,mx=prod(i=1,pr1,prime(i))); forprime(p=prime(pr),lim\mx, my(u=list(lim\p,pr1)); for(i=1,#u,listput(v,p*u[i]))); Set(v) \\ Charles R Greathouse IV, Feb 03 2023
    
  • Python
    from sympy import primefactors
    print([n for n in range(2, 20001) if len(primefactors(n))==5]) # Indranil Ghosh, Apr 06 2017

A033993 Numbers that are divisible by exactly four different primes.

Original entry on oeis.org

210, 330, 390, 420, 462, 510, 546, 570, 630, 660, 690, 714, 770, 780, 798, 840, 858, 870, 910, 924, 930, 966, 990, 1020, 1050, 1092, 1110, 1122, 1140, 1155, 1170, 1190, 1218, 1230, 1254, 1260, 1290, 1302, 1320, 1326, 1330, 1365, 1380, 1386, 1410, 1428
Offset: 1

Views

Author

Keywords

Comments

For a(n) < 30030 = 2 * 3 * 5 * 7 * 11 * 13 this is identical to "numbers with a semiprime number of distinct prime factors." - Jonathan Vos Post, Sep 21 2005

Examples

			The 4th primorial is the first term of this sequence: A002110(4) = 210.
		

Crossrefs

Row 4 of A125666.

Programs

  • Mathematica
    Select[Range[1500], Length[FactorInteger[#]] == 4 &] (* Vladimir Joseph Stephan Orlovsky, Apr 22 2010 *)
  • PARI
    is(n)=omega(n)==4 \\ Charles R Greathouse IV, Sep 17 2015
    
  • PARI
    A246655(lim)=my(v=List(primes([2,lim\=1]))); for(e=2,logint(lim,2), forprime(p=2,sqrtnint(lim,e), listput(v,p^e))); Set(v)
    list(lim,pr=4)=if(pr==1, return(A246655(lim))); my(v=List(),pr1=pr-1,mx=prod(i=1,pr1,prime(i))); forprime(p=prime(pr),lim\mx, my(u=list(lim\p,pr1)); for(i=1,#u,listput(v,p*u[i]))); Set(v) \\ Charles R Greathouse IV, Feb 03 2023

Formula

a(n) has exactly 4 distinct prime factors. omega(a(n)) = A001221(a(n)) = 4. - Jonathan Vos Post, Sep 21 2005

A030231 Numbers with an even number of distinct prime factors.

Original entry on oeis.org

1, 6, 10, 12, 14, 15, 18, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 38, 39, 40, 44, 45, 46, 48, 50, 51, 52, 54, 55, 56, 57, 58, 62, 63, 65, 68, 69, 72, 74, 75, 76, 77, 80, 82, 85, 86, 87, 88, 91, 92, 93, 94, 95, 96, 98, 99, 100, 104, 106, 108, 111, 112, 115, 116, 117, 118, 119
Offset: 1

Views

Author

Keywords

Comments

Gcd(A008472(a(n)), A007947(a(n)))=1; see A014963. - Labos Elemer, Mar 26 2003
Superset of A007774. - R. J. Mathar, Oct 23 2008
A076479(a(n)) = +1. - Reinhard Zumkeller, Jun 01 2013
Union of the rows of A125666 with even indices. - R. J. Mathar, Jul 19 2023

Crossrefs

Programs

  • Haskell
    a030231 n = a030231_list !! (n-1)
    a030231_list = filter (even . a001221) [1..]
    -- Reinhard Zumkeller, Mar 26 2013
  • Mathematica
    Select[Range[200],EvenQ[PrimeNu[#]]&] (* Harvey P. Dale, Jun 22 2011 *)
  • PARI
    j=[]; for(n=1,200,x=omega(n); if(Mod(x,2)==0,j=concat(j,n))); j
    
  • PARI
    is(n)=omega(n)%2==0 \\ Charles R Greathouse IV, Sep 14 2015
    

Formula

From Benoit Cloitre, Dec 08 2002: (Start)
k such that Sum_{d|k} mu(d)*A000005(d) = (-1)^omega(k) = +1 where mu(d)=A008683(d), and omega(d)=A001221(d).
k such that A023900(k) > 0. (End)
Union of A007774, A033993, A074969,... - R. J. Mathar, Jul 22 2025

Extensions

Corrected by Dan Pritikin (pritikd(AT)muohio.edu), May 29 2002

A074969 Numbers with six distinct prime divisors.

Original entry on oeis.org

30030, 39270, 43890, 46410, 51870, 53130, 60060, 62790, 66990, 67830, 71610, 72930, 78540, 79170, 81510, 82110, 84630, 85470, 87780, 90090, 91770, 92820, 94710, 98670, 99330, 101010, 102102, 103530, 103740, 106260, 106590, 108570
Offset: 1

Views

Author

Zak Seidov, Oct 04 2002

Keywords

Comments

The smallest number with six distinct prime divisors is the product of the first six primes, 2*3*5*7*11 = 30030.
The smallest number with seven distinct prime divisors is the product of the first seven primes, 2*3*5*7*11*13 = 390390.

Examples

			60060 is a term because 60060 = 2^2*3*5*7*11*13 with six distinct prime divisors 2, 3, 5, 7, 11, 13
87780 is a term because 87780 = 2^2*3*5*7*11*19 with six distinct prime divisors 2, 3, 5, 7, 11, 19.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[0,5*8! ],Length[FactorInteger[ # ]]==6&] (* Vladimir Joseph Stephan Orlovsky, Apr 22 2010 *)
  • PARI
    is(n)=omega(n)==6 \\ Charles R Greathouse IV, Jun 19 2016
    
  • PARI
    A246655(lim)=my(v=List(primes([2,lim\=1]))); for(e=2,logint(lim,2), forprime(p=2,sqrtnint(lim,e), listput(v,p^e))); Set(v)
    list(lim,pr=6)=if(pr==1, return(A246655(lim))); my(v=List(),pr1=pr-1,mx=prod(i=1,pr1,prime(i))); forprime(p=prime(pr),lim\mx, my(u=list(lim\p,pr1)); for(i=1,#u,listput(v,p*u[i]))); Set(v) \\ Charles R Greathouse IV, Feb 03 2023

Formula

{n : A001221(n) = 6} . - R. J. Mathar, Jul 07 2012

A176655 Numbers that are divisible by exactly 7 distinct primes.

Original entry on oeis.org

510510, 570570, 690690, 746130, 870870, 881790, 903210, 930930, 1009470, 1021020, 1067430, 1111110, 1138830, 1141140, 1193010, 1217370, 1231230, 1272810, 1291290, 1345890, 1360590, 1381380, 1385670, 1411410, 1438710
Offset: 1

Views

Author

Keywords

Examples

			1711710 = 2 * 3^2 * 5 * 7 * 11 * 13 * 19.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[9!,5*9! ],Length[FactorInteger[ # ]]==7&]
    Select[Range[144*10^4],PrimeNu[#]==7&] (* Harvey P. Dale, Jul 05 2022 *)
  • PARI
    isA176655(n)=omega(n)==7 \\ Charles R Greathouse IV, Mar 11 2011
    
  • PARI
    (PARI) A246655(lim)=my(v=List(primes([2,lim\=1]))); for(e=2,logint(lim,2), forprime(p=2,sqrtnint(lim,e), listput(v,p^e))); Set(v)
    list(lim,pr=7)=if(pr==1, return(A246655(lim))); my(v=List(),pr1=pr-1,mx=prod(i=1,pr1,prime(i))); forprime(p=prime(pr),lim\mx, my(u=list(lim\p,pr1)); for(i=1,#u,listput(v,p*u[i]))); Set(v) \\ Charles R Greathouse IV, Feb 03 2023

A048692 Triangle read by rows in which row n contains first n numbers with exactly n distinct prime factors.

Original entry on oeis.org

2, 6, 10, 30, 42, 60, 210, 330, 390, 420, 2310, 2730, 3570, 3990, 4290, 30030, 39270, 43890, 46410, 51870, 53130, 510510, 570570, 690690, 746130, 870870, 881790, 903210, 9699690, 11741730, 13123110, 14804790, 15825810, 16546530, 17160990, 17687670, 223092870, 281291010, 300690390, 340510170, 358888530, 363993630, 380570190, 397687290, 406816410
Offset: 1

Views

Author

Amarnath Murthy, Aug 20 2002

Keywords

Examples

			    2;
    6,  10;
   30,  42,  60;
  210, 330, 390, 420;
  ...
		

Crossrefs

Cf. A002110 (first column).
Main diagonal gives A073329.
Extending the rows to give a square array, we get A125666.

Programs

  • Mathematica
    f[n_] := Flatten[Table[ # [[1]]] & /@ FactorInteger[n]]; (* for n=7 *) Take[ Select[ Range[10^7], Length[f[ # ]] == 7 & ], 7]
    Module[{nn=8,dpf=Table[{n,PrimeNu[n]},{n,2 10^7}]},Flatten[Table[Select[dpf,#[[2]]==n&,n],{n,nn}],1][[All,1]]] (* The program generates the first 36 terms of the sequence. *) (* Harvey P. Dale, Sep 09 2022 *)

Extensions

Edited, corrected and extended by Robert G. Wilson v, Aug 22 2002
More terms from David A. Corneth, Jan 09 2021
Showing 1-10 of 15 results. Next