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.

A084199 Smallest prime q < prime(n) such that q+1 divides prime(n)+1, a(n) = 1 if no such q exists.

Original entry on oeis.org

1, 1, 2, 3, 2, 1, 2, 3, 2, 2, 3, 1, 2, 3, 2, 2, 2, 1, 3, 2, 1, 3, 2, 2, 13, 2, 3, 2, 1, 2, 3, 2, 2, 3, 2, 3, 1, 3, 2, 2, 2, 13, 2, 1, 2, 3, 3, 3, 2, 1, 2, 2, 1, 2, 2, 2, 2, 3, 1, 2, 3, 2, 3, 2, 1, 2, 3, 1, 2, 13, 2, 2, 3, 1, 3, 2, 2, 1, 2, 1, 2, 1, 2, 13, 3, 2, 2, 1, 2, 3, 2, 2, 3, 2, 3, 2, 2, 2, 3, 1, 3, 2, 2
Offset: 1

Views

Author

Reinhard Zumkeller, May 18 2003

Keywords

Comments

Conjecture: A008578 is the range of values (or A000040 = range of values > 1).

Crossrefs

Programs

  • Mathematica
    seq[lim_] := Module[{p = Prime[Range[lim]], q, s = {}}, Do[q = SelectFirst[p, Divisible[p[[i]] + 1, # + 1] &]; AppendTo[s, If[q < p[[i]], q, 1]], {i, 1, Length[p]}]; s]; seq[100] (* Amiram Eldar, Mar 28 2025 *)

Formula

a(n) = 1 iff A084196(n) = 0.