cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A257315 a(1) = 34; a(2) = 35; for n > 2, a(n) is the smallest number of the form prime + 32 not already used which shares a factor with a(n-1).

Original entry on oeis.org

34, 35, 45, 39, 51, 63, 49, 91, 105, 55, 75, 69, 93, 99, 111, 37, 259, 133, 171, 129, 43, 301, 189, 135, 85, 115, 145, 195, 141, 159, 183, 61, 793, 169, 273, 213, 225, 205, 255, 231, 121, 363, 243, 261, 303, 309, 103, 1339, 325, 265, 295, 315, 339, 345, 369
Offset: 1

Views

Author

Vladimir Shevelev, Apr 20 2015

Keywords

Comments

Analog of EKG-sequence (A064413) on the numbers of the form prime + 32.
Conjecture: the sequence {a(n)-32} is a permutation of primes (A000040).

Crossrefs

Programs

  • Mathematica
    f[n_] := Block[{o = 2^5, 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@ 55 (* Michael De Vlieger, Apr 20 2015 *)

Extensions

More terms from Peter J. C. Moses, Apr 20 2015