OFFSET
1,2
COMMENTS
Term a(1) = 1 prepended to match with the definition of A105560. - Antti Karttunen, May 25 2017
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
Let n = 6; 6 has 2 different prime factors, therefore a(6) = 3, the second prime.
MATHEMATICA
Table[Prime[Length[FactorInteger[n]]], {n, 2, 84}]
Prime[PrimeNu[Range[2, 90]]] (* Harvey P. Dale, Oct 02 2013 *)
PROG
(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
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 03 2005
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
STATUS
approved