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

A285915 Integers n such that A112528(n) - A103274(n) = 1.

Original entry on oeis.org

5, 7, 9, 12, 13, 16, 17, 19, 20, 22, 24, 25, 30, 32, 37, 38, 41, 47, 48, 52, 54, 57, 62, 63, 64, 67, 68, 73, 74, 75, 76, 78, 80, 81, 85, 87, 93, 94, 95, 96, 98, 101, 108, 109, 112, 115, 122, 124, 125, 126, 127, 128, 130, 131, 133, 134, 136, 137, 138, 140, 147
Offset: 1

Views

Author

Zak Seidov, Apr 28 2017

Keywords

Comments

In general, A112528(n) - A103274(n) = 0 or 1.
Also, A000040(a(n)) = A063638(n).

Crossrefs

Programs

  • Mathematica
    Select[Range@ 150, And[# != 1, PrimeOmega[Prime@ # - 2] == 2] &] (* Michael De Vlieger, May 01 2017 *)
  • PARI
    is(n)=n!=1&&bigomega(prime(n)-2)==2 \\ David A. Corneth, Apr 29 2017

A342406 Primes p such that the number of ways to write p = 2*q + r with q and r prime is a prime.

Original entry on oeis.org

11, 13, 19, 23, 31, 41, 53, 59, 61, 67, 79, 89, 103, 139, 167, 179, 193, 199, 241, 251, 257, 277, 347, 367, 373, 409, 461, 463, 467, 479, 523, 541, 563, 601, 613, 641, 653, 691, 719, 743, 811, 823, 853, 881, 887, 937, 947, 977, 1039, 1063, 1087, 1117, 1129, 1151, 1223, 1249, 1259, 1277, 1283
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Mar 11 2021

Keywords

Comments

Primes prime(k) such that A103274(k) is prime.

Examples

			a(3) = 19 because there are 2 ways: 19 = 2*3+13 = 2*7+5, and 2 is prime.
		

Crossrefs

Cf. A103274.

Programs

  • Maple
    filter:= proc(p) local q, count;
      q:= 1; count:= 0;
      do
        q:= nextprime(q);
        if 2*q >= p then return isprime(count) fi;
        if isprime(p-2*q) then count:= count+1 fi
      od
    end proc:
    select(filter, [seq(ithprime(i),i=1..1000)]);
Showing 1-2 of 2 results.