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.

A356864 a(n) is the number of primes p < n such that 2*n-p and p*(2*n-p)+2*n are also prime.

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 0, 3, 0, 2, 3, 0, 3, 4, 1, 1, 2, 1, 2, 3, 0, 0, 3, 1, 3, 1, 0, 5, 3, 0, 2, 1, 0, 3, 6, 0, 1, 2, 1, 1, 3, 0, 2, 2, 0, 2, 1, 1, 4, 6, 0, 2, 11, 0, 3, 3, 0, 2, 2, 0, 0, 2, 0, 4, 4, 0, 1, 3, 1, 5, 3, 0, 2, 8, 0, 2, 3, 0, 1, 5, 0, 0, 6, 1, 4, 5, 0, 3, 4, 0, 3, 1
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Sep 01 2022

Keywords

Comments

a(n) is the number of k such that n-k, n+k and n^2+2*n-k^2 are all prime.
If n == 1 (mod 3) then a(n) <= 1, as the only possible p is 3.

Examples

			a(11) = 2 because 3, 22-3 = 19 and 3*19+22 = 79, and 5, 22-5 = 17 and 5*17+22 = 107 are all prime.
		

Crossrefs

Cf. A061357.

Programs