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.

A246965 Numbers n such that 19*n-(n+19) is a prime.

Original entry on oeis.org

2, 4, 5, 6, 7, 11, 12, 14, 15, 16, 21, 25, 26, 27, 29, 30, 32, 34, 37, 39, 40, 41, 44, 46, 47, 49, 50, 54, 55, 60, 62, 65, 67, 69, 71, 72, 77, 81, 84, 85, 89, 90, 91, 92, 96, 105, 106, 107, 111, 112, 116, 117, 120, 124, 127, 131, 132, 134, 135, 137, 145, 146
Offset: 1

Views

Author

Shanmuga Subramanian, Sep 08 2014

Keywords

Examples

			17 = (19*2)-(19+2) is prime, so 2 is a term.
		

Programs

  • Mathematica
    Select[Range[150],PrimeQ[18#-19]&] (* Harvey P. Dale, Jun 10 2016 *)
  • PARI
    lista(nn) = {for (n=1, nn, if (isprime(18*n-19), print1(n, ", ")););} \\ Michel Marcus, Sep 09 2014
    
  • PHP
    for($num=1;$num
    				
  • Sage
    [n for n in (2..200) if is_prime(18*n-19)] # Bruno Berselli, Sep 09 2014

Formula

a(n) = A138918(n)+1.