[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A092913
a(0) = 1; a(n) = least multiple of a(n-1) such that every k with a(n)-n <= k <= a(n) + n is composite. The least distance of a prime on either side from a(n) is >n.
0
1, 9, 117, 117, 1404, 5616, 5616, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 190944, 3246048, 3246048, 38952576, 38952576, 38952576, 38952576, 38952576, 38952576
OFFSET
0,2
EXAMPLE
a(2) = a(3) = 117 = 9*13 and all the numbers from 117-2 = 115 to 117+2 = 119 are
composite.
MATHEMATICA
f[s_] := Block[{k, n, inc}, n = Length[s]; k = inc = Last[s]; While[Or @@ PrimeQ /@ Range[k - n, k + n], k += inc]; Append[s, k]]; Nest[f, {1}, 30] (* Ray Chandler, Sep 23 2006 *)
CROSSREFS
Sequence in context: A083305 A222146 A253655 * A022607 A139740 A221442
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 15 2004
EXTENSIONS
Extended by Ray Chandler, Sep 23 2006
STATUS
approved