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.

Previous Showing 51-53 of 53 results.

A216289 Smallest k in which there are exactly n primes between 10*k and 10*k+9.

Original entry on oeis.org

20, 9, 2, 4, 0
Offset: 0

Views

Author

V. Raman, Sep 03 2012

Keywords

Crossrefs

Programs

  • Mathematica
    mx = 5; t = Table[-1, {mx}]; n = 0; found = 0; While[found < mx, ps = Select[Range[10*n, 10*n + 9], PrimeQ]; len = Length[ps]; If[t[[len + 1]] == -1, t[[len + 1]] = n; found++]; n++]; t (* T. D. Noe, Sep 03 2012 *)

A342809 Numbers k such that k-1 and round(k/5) are both prime.

Original entry on oeis.org

8, 12, 14, 24, 54, 84, 114, 234, 264, 294, 354, 444, 504, 564, 654, 684, 744, 864, 954, 984, 1164, 1194, 1284, 1554, 1584, 1734, 1914, 2004, 2154, 2214, 2244, 2334, 2394, 2544, 2844, 2964, 3084, 3204, 3414, 3594
Offset: 1

Views

Author

Claude H. R. Dequatre, Mar 22 2021

Keywords

Comments

Except for a(1) and a(2), all terms == 4 (mod 10).
The first three absolute differences (d) between two consecutive rounded (k/5) are respectively equal to 0, 1 and 2 and all the others to 6 or a multiple of 6.
Subsequence of A008864, by definition. - Michel Marcus, Mar 22 2021
For n >= 3, a(n) = 5*A158318(n-2) - 1. - Hugo Pfoertner, Mar 22 2021

Examples

			8 is a term because 8 - 1 = 7 and 7 is prime and 8/5 = 1.6 which when rounded gives 2 and 2 is also prime.
235 is not a term because 235 - 1 = 234 and 234 is not a prime although 235/5 = 47 is prime.
Initial terms, associated primes and d:
         k     k - 1   round(k/5)    d
a(1)     8       7         2
a(2)    12      11         2         0
a(3)    14      13         3         1
a(4)    24      23         5         2
a(5)    54      53        11         6
a(6)    84      83        17         6
a(7)   114     113        23         6
a(8)   234     233        47        24
a(9)   264     263        53         6
a(10)  294     293        59         6
		

Crossrefs

Programs

  • Mathematica
    Select[Range[2,5000,2],And@@PrimeQ[{#-1,Round[#/5]}]&] (* Giorgos Kalogeropoulos, Apr 01 2021 *)
  • PARI
    for(k = 1,10000,if(isprime(k - 1) && isprime(k\/5),print1(k", ")))
    
  • Python
    from sympy import isprime
    A342809_list = [k for k in range(1,10**5) if isprime(k-1) and isprime(k//5+int(k % 5 > 2))] # Chai Wah Wu, Apr 08 2021

A379677 Numbers k for which 10k+1, 10k+3, 10k+7, 10k+9, 10k+31, 10k+33, 10k+37, and 10k+39 are primes.

Original entry on oeis.org

100630, 259495, 391921, 960055, 1053106, 10881631, 13144570, 15237073, 15713164, 17902876, 21195025, 25535221, 26758786, 55745863, 68512435, 72449137, 82135765, 87141136, 103026208, 110310436, 128216002, 138120127, 142769863, 143237995, 144399400, 159672133, 194876008
Offset: 1

Views

Author

Mike Speciner, Dec 29 2024

Keywords

Comments

k is a term if k and k+3 are both in A007811.

Examples

			a(1) = 100630 since 1006301, 1006303, 1006307, 1006309, 1006331, 1006333, 1006337, and 1006339 are all prime and there are no smaller minimally close prime decades.
		

Crossrefs

Programs

  • Python
    from itertools import count
    from sympy import isprime
    def generate_a() :
      for k in count() :
        for j in (1,3,7,9,31,33,37,39) :
          if not isprime(10*k+j) : break
        else:
          yield k

Formula

From Hugo Pfoertner, Dec 29 2024: (Start)
a(n) = (A059925(n) - 1)/10.
a(n) == 19 (mod 21). (End)

Extensions

More terms from Hugo Pfoertner, Dec 29 2024
Previous Showing 51-53 of 53 results.