login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257312 a(1) = 6; a(2) = 7; for n > 2, a(n) is the smallest number of the form prime + 4 not already used which shares a factor with a(n-1). 5
6, 7, 21, 9, 15, 27, 33, 11, 77, 35, 45, 51, 17, 153, 57, 63, 75, 65, 105, 87, 93, 111, 117, 135, 141, 47, 423, 171, 177, 183, 195, 143, 231, 161, 23, 437, 285, 155, 185, 215, 245, 203, 261, 201, 237, 243, 255, 267, 273, 287, 41, 861, 297, 275, 315, 321, 107 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Analog of EKG-sequence (A064413) on the numbers of the form prime + 4.
Conjecture: the sequence {a(n)-4} is a permutation of primes (A000040).
LINKS
MATHEMATICA
f[n_] := Block[{o = 2^2, s, p, k}, s = {o + 2, o + 3}; For[k = 3, k <= n, k++, p = 2; While[GCD[p + o, s[[k - 1]]] == 1 || MemberQ[s, p + o], p = NextPrime@ p]; AppendTo[s, p + o]]; s]; f@ 57 (* Michael De Vlieger, Apr 20 2015 *)
CROSSREFS
Sequence in context: A358059 A041771 A042757 * A062369 A048062 A295729
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Apr 20 2015
EXTENSIONS
More terms from Peter J. C. Moses, Apr 20 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)