OFFSET
1,1
COMMENTS
Old name: The n-th positive composite number divided by its lowest nontrivial factor.
LINKS
K. Stern, Table of n, a(n) for n = 1..9999
FORMULA
EXAMPLE
a(1) = 4/2 = 2, a(2) = 6/2 = 3, a(3) = 8/2 = 4, a(4) = 9/3 = 3, a(5) = 10/2 = 5.
MATHEMATICA
f[n_] := Block[{k = n + PrimePi@ n + 1}, While[k != n + PrimePi@ k + 1, k++ ]; k/FactorInteger[k][[1, 1]]]; Array[f, 75] (* Robert G. Wilson v, May 11 2012 *)
Divisors[#][[-2]]&/@Select[Range[200], CompositeQ] (* Harvey P. Dale, Dec 06 2021 *)
(# / FactorInteger[#][[1, 1]])& /@ Select[Range[300], CompositeQ] (* Amiram Eldar, Jun 18 2022 *)
PROG
(MATLAB)
function [a] = A160180(k) j = 0; n = 1; while j < k if isprime(n) == 1 skip elseif isprime(n) == 0 j = j + 1; factors = factor(n); lowfactor = factors(1, 1); a(j, 1) = n/lowfactor; end n = n + 1; end - Kyle Stern, May 04 2009
(Haskell)
a160180 = a032742 . a002808 -- Reinhard Zumkeller, Mar 29 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Kyle Stern, May 03 2009, May 04 2009
EXTENSIONS
Indices of b-file corrected, more terms added using b-file. - N. J. A. Sloane, Aug 31 2009
New name from Reinhard Zumkeller, Mar 29 2014
Incorrect formula removed by Ridouane Oudra, Oct 15 2021
STATUS
approved