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.

A128886 a(n) = prime(lucky(n)) - lucky(prime(n)).

Original entry on oeis.org

-1, -2, 4, 2, 4, -2, 4, 22, 28, 4, 16, 2, 22, 14, 70, 48, 28, 40, 12, 2, 34, 24, 36, 42, 24, 16, 88, 82, 96, 68, 10, 46, 52, 70, 30, 28, 106, 84, 82, 62, 56, 78, 82, 106, 114, 118, 18, -40, 52, 66, 68, 52, 136, 70, 46, 52, 54, 64, 112, 78, 114, 94, 10, 50, 82, 82, 4, 136, 90, 74
Offset: 1

Views

Author

Jonathan Vos Post, May 08 2007

Keywords

Comments

Commutator [prime,lucky] = [A032605, A032606].

Examples

			a(1) = Prime(Lucky(1)) - Lucky(Prime(1)) = Prime(1) - Lucky(2) = 2 - 3 = -1.
a(2) = Prime(Lucky(2)) - Lucky(Prime(2)) = Prime(3) - Lucky(3) = 5 - 7 = -2.
a(3) = Prime(Lucky(3)) - Lucky(Prime(3)) = Prime(7) - Lucky(5) = 17 - 13 = 4.
		

Crossrefs

Cf. A000040, A000959, A032605 (Prime numbers indexed by lucky numbers), A032606 (Lucky numbers indexed by prime numbers).

Programs

Formula

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

Extensions

Entries corrected starting at a(10) by R. J. Mathar, Oct 22 2010