|
|
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
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|