A005132Recamán's sequence (or Recaman's sequence): a(0) = 0; for n > 0, a(n) = a(n-1) - n if nonnegative and not already in the sequence, otherwise a(n) = a(n-1) + n.

0, 1, 3, 6, 2, 7, 13, 20, 12, 21, 11, 22, 10, 23, 9, 24, …

The first 7 terms appear at position 376,501,687.

…61170709889409803582170601362713290455426473174902218708…
position 376,501,687
termsstringfirst positionoccurrences
103299,993,942
2011679,998,250
30132,0791,000,932
401362,079100,221
50136227,7549,938
60136278,358,632940
701362713376,501,68714
80136271320not within 1,000,000,0000
9013627132012not within 1,000,000,0000

Searched the first 1,000,000,000 digits. Strings longer than 12 digits are not indexed.