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.

A093667 a(n) = prime(n) - prime(n+1) + prime(n+2).

Original entry on oeis.org

4, 5, 9, 9, 15, 15, 21, 25, 25, 35, 35, 39, 45, 49, 53, 55, 65, 65, 69, 77, 77, 85, 91, 93, 99, 105, 105, 111, 123, 117, 133, 133, 147, 141, 155, 157, 161, 169, 173, 175, 189, 183, 195, 195, 209, 211, 215, 225, 231, 235, 235, 249, 247, 257, 263, 265, 275, 275, 279
Offset: 1

Views

Author

Robert G. Wilson v, Apr 08 2004

Keywords

Comments

Prime terms are balanced primes (A006562). - Zak Seidov, Mar 03 2019
a(n) = a(n+1) iff prime(n+3) - prime(n) = 2 * (prime(n+2) - prime(n+1)). It's not possible to get a(n) = a(n+1) = a(n+2). - Bernard Schott, Mar 03 2019

Crossrefs

Programs

  • Magma
    [NthPrime(n)-NthPrime(n+1)+NthPrime(n+2): n in [1..60]]; // Vincenzo Librandi, Apr 17 2015
    
  • Mathematica
    Table[Prime[n] + Prime[n + 2] - Prime[n + 1], {n, 75}]
    #[[1]]-#[[2]]+#[[3]]&/@Partition[Prime[Range[70]],3,1] (* Harvey P. Dale, Oct 28 2018 *)
  • PARI
    vector(80, n, prime(n) - prime(n+1) + prime(n+2)) \\ Michel Marcus, Apr 17 2015

Formula

a(n) = A001223(n+1) + A000040(n). - Michel Marcus, Apr 17 2015