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

A117093 Numbers k such that nextprime(3*k) > 3*nextprime(k) (if p is prime then nextprime(p) = p).

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 16, 17, 18, 19, 23, 28, 29, 30, 31, 37, 38, 39, 40, 41, 43, 47, 53, 58, 59, 61, 67, 71, 72, 73, 78, 79, 81, 82, 83, 88, 89, 95, 96, 97, 98, 99, 100, 101, 103, 106, 107, 108, 109, 113, 127, 130, 131, 137, 138, 139, 148, 149, 150, 151, 156, 157
Offset: 1

Views

Author

Mohammed Bouayoun (mohammed.bouayoun(AT)sanef.com), Apr 18 2006

Keywords

Comments

Includes all primes.

Examples

			13 is a term since nextprime(3*13) = 41 and 3*nextprime(13) = 3*13=39 and 41 > 39.
		

Crossrefs

Union of A000040 and A117100.
Cf. A007918 (nextprime).

Programs

  • Maple
    filter:= n -> nextprime(3*n) > 3*nextprime(n-1):
    select(filter, [$1..1000]); # Robert Israel, Jul 25 2025
  • Mathematica
    fp[k_]:=If[PrimeQ[k],k,NextPrime[k]];Select[Range[160],fp[3#]>3fp[#]&] (* James C. McMahon, Aug 23 2024 *)
  • PARI
    for(i=1,100,if(nextprime(3*i)>nextprime(3)*nextprime(i),print1(i,", ")))

Extensions

a(44)-a(59) from James C. McMahon, Aug 23 2024
Showing 1-1 of 1 results.