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

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
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 December 8 07:12 EST 2023. Contains 367662 sequences. (Running on oeis4.)