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.

A140111 Primes of the form prime(x) + prime(x+1) - (prime(x+1) - prime(x))/2.

Original entry on oeis.org

7, 11, 23, 59, 83, 97, 109, 149, 233, 283, 317, 337, 349, 359, 367, 383, 479, 487, 563, 571, 593, 641, 709, 769, 823, 839, 863, 1009, 1117, 1129, 1217, 1283, 1297, 1319, 1423, 1553, 1579, 1619, 1627, 1663, 1733, 1913, 2029, 2039, 2063, 2069, 2083, 2099, 2129
Offset: 1

Views

Author

Keywords

Examples

			3+5-(5-3)/2=3+5-1=7, 5+7-(7-5)/2=5+7-1=11, ...
		

Crossrefs

Cf. A092217.

Programs

  • Mathematica
    a = {}; Do[p1 = Prime[n]; p2 = Prime[n + 1]; p = p1 + p2 - (p2 - p1)/2; If[PrimeQ[p], AppendTo[a, p]], {n, 10^2}]; a
    Select[#[[1]]+#[[2]]-(#[[2]]-#[[1]])/2&/@Partition[ Prime[ Range[ 200]],2,1],PrimeQ] (* Harvey P. Dale, Mar 14 2021 *)

Extensions

More terms from Harvey P. Dale, Mar 14 2021