A267758 If a(n) is prime, then a(n) = a(n+1) - a(n-1): lexicographic first permutation of the nonnegative integers with this property.
0, 1, 2, 3, 5, 8, 4, 6, 7, 13, 20, 9, 10, 11, 21, 12, 14, 15, 16, 17, 33, 18, 19, 37, 56, 22, 23, 45, 24, 25, 26, 27, 28, 29, 57, 30, 31, 61, 92, 32, 34, 35, 36, 38, 39, 40, 41, 81, 42, 43, 85, 44, 46, 47, 93, 48, 49, 50, 51, 52, 53, 105, 54, 55, 58, 59
Offset: 0
Keywords
Links
- M. F. Hasler, Table of n, a(n) for n = 0..1000
- Eric Angelini, Prime a(n) as difference of its neighbours, SeqFan list, Jan. 21, 2016.
- Index entries for sequences that are permutations of the natural numbers
Crossrefs
Cf. A217199.
Programs
-
PARI
{N=200; a=[]; U=[]; L=0; while(#a
Started in 1964 by Neil J. A. Sloane | Maintained by The OEIS Foundation Inc.
Content is available under The OEIS End-User License Agreement.
Comments