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!)
A257311 a(1) = 4; a(2) = 5; for n > 2, a(n) is the smallest number of the form prime + 2 not already used which shares a factor with a(n-1). 6
4, 5, 15, 9, 21, 7, 49, 63, 33, 39, 13, 91, 105, 25, 45, 55, 75, 69, 81, 99, 111, 129, 43, 559, 169, 195, 85, 115, 165, 141, 153, 159, 183, 61, 549, 201, 213, 225, 175, 133, 19, 285, 231, 243, 273, 259, 315, 235, 265, 295, 355, 375, 279, 31, 403, 351, 309, 103 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Analog of EKG-sequence (A064413) on the numbers of the form prime + 2.
Conjecture: the sequence {a(n)-2} is a permutation of the primes (A000040).
Every prime in the sequence is greater of twin primes (A006512).
A generalization. Let A_k (k>=1) be the following sequence: a(1) = 2^k+2; a(2) = 2^k+3; for n > 2, a(n) is the smallest number of the form 2^k+prime not already used which shares a factor with a(n-1).
Conjecture: For every k>=1, the sequence A_k - 2^k is a permutation of the primes.
A_1 = A257311, A_2 = A257312, A_3 = A257313, A_4 = A257314, A_5 = A257315.
LINKS
MATHEMATICA
f[n_] := Block[{o = 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@ 58 (* Michael De Vlieger, Apr 20 2015 *)
CROSSREFS
Sequence in context: A363817 A308095 A321348 * A369790 A330857 A066516
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 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)