A101949 Peak-trough transform of the prime-gap sequence (A001223).
0, 0, 0, 1, -1, 1, -1, 0, 1, -1, 1, 0, -1, 0, 0, 0, -1, 1, 0, -1, 1, -1, 0, 3, 0, -1, 1, -1, 0, 3, -1, 1, -1, 3, -1, 0, 0, -1, 0, 0, -1, 3, -1, 1, -1, 0, 0, 0, -1, 0, 1, -1, 3, 0, 0, 0, -1, 1, 0, -1, 0, 3, 0, -3, 0, 3, -1, 1, -3, 0, 0
Offset: 1
Keywords
Examples
a(4)=1 because A101949(4) is greater than one nearest neighbor on both sides, i.e. A101949(3) and A101949(5), but no more than one.
Comments