|
Search: id:A105574
|
|
|
| A105574 |
|
a(n) is the m-th prime number, where m is the smallest prime factor of n. |
|
+0 1
|
|
| 3, 5, 3, 11, 3, 17, 3, 5, 3, 31, 3, 41, 3, 5, 3, 59, 3, 67, 3, 5, 3, 83, 3, 11, 3, 5, 3, 109, 3, 127, 3, 5, 3, 11, 3, 157, 3, 5, 3, 179, 3, 191, 3, 5, 3, 211, 3, 17, 3, 5, 3, 241, 3, 11, 3, 5, 3, 277, 3, 283, 3, 5, 3, 11, 3, 331, 3, 5, 3
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
EXAMPLE
|
The smallest prime factor of 5 is 5. Hence a(5) is the 5th prime, which is 11.
The smallest prime factor of 6 is 2. Therefore a(6) = 3.
|
|
MATHEMATICA
|
Table[Prime[FactorInteger[n][[1, 1]]], {n, 2, 70}]
|
|
PROGRAM
|
(PARI) g(n) = for(x=2, n, print1(prime(sdiv(x))", ")) sdiv(n) = \ The smallest prime divisor of n { local(x); x=ifactor(n); return(x[1]) } ifactor(n, m=0) = \The vector of the integer factors of n with multiplicity. { local(f, j, k, flist); flist=[]; f=Vec(factor(n, m)); for(j=1, length(f[1]), for(k = 1, f[2][j], flist = concat(flist, f[1][j]) ); ); return(flist) }
|
|
CROSSREFS
|
Adjacent sequences: A105571 A105572 A105573 this_sequence A105575 A105576 A105577
Sequence in context: A076842 A077862 A134061 this_sequence A105562 A089730 A105445
|
|
KEYWORD
|
nonn,less
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), May 03 2005
|
|
EXTENSIONS
|
Edited by Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jul 25 2007
|
|
|
Search completed in 0.002 seconds
|