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.

A194187 Difference of n-th prime and (bitwise XOR of n and n-th prime).

Original entry on oeis.org

-1, 2, -1, 4, -3, 2, -5, -8, -7, 6, 11, -4, 5, 6, 15, 16, 17, 14, -13, -12, -19, -10, 15, 24, -23, -26, -21, -12, -3, 2, 31, -32, -31, -30, -33, -28, -27, 30, 39, 40, 25, 22, 43, -44, -35, -34, -41, -16, 17, 14, 15, 20, 45, 46, -53, -56, -39, -38, -25, -12
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 12 2011

Keywords

Comments

a(n) = A000040(n) - A070883(n).

Crossrefs

Programs

  • Haskell
    a194187_list = zipWith (-) a000040_list a070883_list
  • Mathematica
    #[[2]]-BitXor[#[[1]],#[[2]]]&/@Table[{n,Prime[n]},{n,60}] (* Harvey P. Dale, Oct 05 2023 *)