OFFSET
2,1
COMMENTS
Placing a 1 between each term of this sequence gets sequence A117365.
LINKS
Robert Israel, Table of n, a(n) for n = 2..10000
FORMULA
From Robert Israel, Apr 14 2019: (Start)
a(n) = 2*n-3 if 2*n-1 is in A006512. (End)
EXAMPLE
a(13) = 3 because smallest prime dividing 25 is 5 and largest prime less than 5 is 3.
MAPLE
with(numtheory): a:=proc(n): prevprime(factorset(2*n-1)[1]): end: seq(a(n), n=2..90); # Emeric Deutsch, Apr 22 2006
MATHEMATICA
prs=Prime[Range[50]];
f[n_]:=NextPrime[First[Select[prs, Divisible[2 n-1, #]&]], -1]
f/@Range[2, 90] (* Harvey P. Dale, Jan 23 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 10 2006
EXTENSIONS
More terms from Emeric Deutsch, Apr 22 2006
STATUS
approved