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-3 of 3 results.

A244505 Greater of twin primes of (40n-23,40n-21).

Original entry on oeis.org

19, 139, 619, 859, 1699, 2659, 3259, 4219, 4339, 5419, 5659, 7459, 8539, 9859, 10459, 10939, 11059, 11779, 12379, 13219, 13339, 15139, 15739, 17419, 17659, 19699, 20899, 21019, 21379, 21739, 22699, 23059, 23539, 24979, 25579, 27739, 28099, 30139, 32059
Offset: 1

Views

Author

Karl V. Keller, Jr., Nov 11 2014

Keywords

Comments

This is a subsequence and the intersection of A006512 (greater of twin primes) and A142190 (primes 19 mod 40).

Crossrefs

Programs

  • Mathematica
    Select[40*Range[1000]-21,AllTrue[{#,#-2},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 04 2019 *)
  • PARI
    lista(nn) = for(n=1, nn, if(isprime(q=40*n-21) && isprime(q-2), print1(n, ", "))); \\ Michel Marcus, Nov 12 2014
  • Python
    from sympy import isprime
    for n in range(1,2001):
      if isprime(40*n-23) and isprime(40*n-21): print(40*n-21,end=",")
    

A250024 a(n) = 40*n - 21.

Original entry on oeis.org

19, 59, 99, 139, 179, 219, 259, 299, 339, 379, 419, 459, 499, 539, 579, 619, 659, 699, 739, 779, 819, 859, 899, 939, 979, 1019, 1059, 1099, 1139, 1179, 1219, 1259, 1299, 1339, 1379, 1419, 1459, 1499, 1539, 1579, 1619, 1659, 1699, 1739, 1779, 1819, 1859, 1899
Offset: 1

Views

Author

Karl V. Keller, Jr., Nov 10 2014

Keywords

Comments

This is the sequence of numbers congruent to 19 mod 40.

Crossrefs

Cf. A017377 (10*n+9), A142190 (prime terms).

Programs

Formula

From Vincenzo Librandi, Nov 11 2014: (Start)
G.f.: x*(19+21*x)/(1-x)^2.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
From Elmo R. Oliveira, Apr 04 2025: (Start)
E.g.f.: 21 + exp(x)*(40*x - 21).
a(n) = 2*a(n-1) - a(n-2) for n > 2. (End)

A250025 Lesser of twin prime pairs of the form (40n - 21, 40n - 19).

Original entry on oeis.org

59, 179, 419, 659, 1019, 1619, 2339, 3299, 3539, 4019, 4259, 5099, 6299, 6659, 6779, 8219, 8819, 9419, 10139, 10499, 10859, 11699, 11939, 12539, 16139, 16979, 17579, 18059, 18539, 19139, 19379, 21059, 22619, 22739, 22859, 24179, 24419, 26699, 27059, 27539, 28619, 32939, 33179, 34259, 34499, 36779, 36899, 37019, 38459
Offset: 1

Views

Author

Karl V. Keller, Jr., Nov 10 2014

Keywords

Comments

This is a subsequence and the intersection of A001359 (lesser of twin primes) and A142190 (primes 19 mod 40).

Crossrefs

Programs

  • Mathematica
    Select[40Range[1000] - 21, PrimeQ[#] && PrimeQ[# + 2] &] (* Alonso del Arte, Nov 11 2014 *)
    Select[Table[40n-{19,21},{n,1000}],AllTrue[#,PrimeQ]&][[All,2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 08 2019 *)
  • Python
    from sympy import isprime
    for n in range(1,1001):
      if isprime(40*n-21) and isprime(40*n-19): print(40*n-21,end=",")
Showing 1-3 of 3 results.