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.

Showing 1-1 of 1 results.

A332733 a(n) is the smallest positive k such that n!*prime(n) + k is a prime.

Original entry on oeis.org

1, 1, 1, 5, 1, 11, 11, 11, 1, 11, 23, 43, 19, 41, 17, 29, 1, 19, 71, 157, 1, 23, 79, 67, 47, 53, 37, 53, 31, 67, 73, 223, 307, 67, 1, 197, 151, 43, 43, 157, 89, 137, 47, 127, 173, 97, 89, 79, 223, 79, 83, 151, 163, 89, 167, 313, 179, 101, 127, 101, 181, 193, 421, 73
Offset: 1

Views

Author

Mohamed Sami Gattoufi, Feb 21 2020

Keywords

Comments

k equals nextprime(n!*prime(n)) - n!*prime(n).

Crossrefs

Programs

  • Mathematica
    spk[n_]:=Module[{c=n!Prime[n]},NextPrime[c]-c]; Array[spk,70] (* Harvey P. Dale, Aug 13 2021 *)
  • PARI
    a(n) = my(x=n!*prime(n)); nextprime(x+1) - x; \\ Michel Marcus, Feb 22 2020

Formula

a(n) = A151800(n!*prime(n)) - n!*prime(n).
Showing 1-1 of 1 results.