login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A246965 Numbers n such that 19*n-(n+19) is a prime. 1
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A138918(n)+1.
EXAMPLE
17 = (19*2)-(19+2) is prime, so 2 is a term.
MATHEMATICA
Select[Range[150], PrimeQ[18#-19]&] (* Harvey P. Dale, Jun 10 2016 *)
PROG
(PHP)
for($num=1; $num<x; $num++)
{
$num2=$i;
$finalnumber=($num2*19)-($num2+19);
//gmp_nextprime will find a primenumber greater than the given number
$prime=gmp_nextprime($finalnumber-1);
if($prime==$finalnumber)
{
$sequence=$sequence.", ".$prime;
}
}
echo $sequence;
(PARI) lista(nn) = {for (n=1, nn, if (isprime(18*n-19), print1(n, ", ")); ); } \\ Michel Marcus, Sep 09 2014
(Sage) [n for n in (2..200) if is_prime(18*n-19)] # Bruno Berselli, Sep 09 2014
CROSSREFS
Sequence in context: A318606 A057461 A070116 * A300861 A039057 A317185
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 14:51 EDT 2024. Contains 371749 sequences. (Running on oeis4.)