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-2 of 2 results.

A105561 a(n) is the m-th prime, where m is the number of distinct prime factors of n (A001221), a(1) = 1.

Original entry on oeis.org

1, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 3, 2, 2, 3, 2, 3, 3, 3, 2, 3, 2, 3, 2, 3, 2, 5, 2, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 5, 2, 3, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 5, 2, 3, 3, 2, 3, 5, 2, 3, 3, 5, 2, 3, 2, 3, 3, 3, 3, 5, 2, 3, 2, 3, 2, 5, 3, 3, 3, 3, 2, 5, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 2, 5, 2, 3, 5, 3, 2, 3, 2, 5, 3, 3, 2, 5, 3, 3, 3, 3, 3, 5
Offset: 1

Views

Author

Cino Hilliard, May 03 2005

Keywords

Comments

Term a(1) = 1 prepended to match with the definition of A105560. - Antti Karttunen, May 25 2017

Examples

			Let n = 6; 6 has 2 different prime factors, therefore a(6) = 3, the second prime.
		

Crossrefs

Programs

  • Mathematica
    Table[Prime[Length[FactorInteger[n]]], {n, 2, 84}]
    Prime[PrimeNu[Range[2,90]]] (* Harvey P. Dale, Oct 02 2013 *)
  • PARI
    A105561(n) = if(1==n,n,prime(omega(n))); \\ [After the original Pari-program given here.] - Antti Karttunen, May 25 2017
    
  • Python
    from sympy import prime, primefactors
    def a(n): return 1 if n==1 else prime(len(primefactors(n))) # Indranil Ghosh, May 25 2017

Extensions

Edited by Stefan Steinerberger, Jun 15 2007
Term a(1) = 1 prepended (correcting also the indexing of the rest of terms), and data section extended to 120 terms by Antti Karttunen, May 25 2017

A071836 Numbers k such that the largest prime factor of k = prime(tau(k)).

Original entry on oeis.org

3, 14, 21, 25, 35, 52, 114, 117, 152, 190, 266, 285, 325, 338, 343, 399, 418, 444, 464, 494, 507, 513, 627, 637, 646, 665, 666, 740, 741, 845, 969, 1036, 1045, 1183, 1184, 1235, 1272, 1463, 1573, 1590, 1615, 1628, 1665, 1729, 1850, 1859, 1924, 2116, 2120
Offset: 1

Views

Author

Benoit Cloitre, Jun 08 2002

Keywords

Comments

Numbers k such that A006530(k) = A000040(A000005(k)).

Examples

			666 = 2*3^2*37, tau(666) = 12, prime(12) = 37, hence 666 is a term.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[2200],FactorInteger[#][[-1,1]]==Prime[DivisorSigma[0,#]]&] (* Harvey P. Dale, Aug 13 2021 *)
  • PARI
    for(n=2,3000,if(component(component(factor(n),1),omega(n))==prime(numdiv(n)),print1(n,",")))
    
  • PARI
    is(k) = if(k > 1, my(f = factor(k)); f[#f~, 1] == prime(numdiv(f)), 0); \\ Amiram Eldar, Oct 27 2024
Showing 1-2 of 2 results.