A088523a(1) = 2; for n > 1, a(n) = (a(n-1) + prime(n)) mod n.

2, 1, 0, 3, 4, 5, 1, 4, 0, 9, 7, 8, 10, 11, 13, 2, …

The first 3 terms appear at position 1,317.

…906949129331367702898915210475216205696602405803815…
position 1,317
termsstringfirst positionoccurrences
126100,002,410
2219310,000,534
32101,317999,860
421038,733100,289
52103419,39210,093
621034519,3921,013
7210345119,39293
82103451419,39210
9210345140not within 1,000,000,0000
102103451409not within 1,000,000,0000
1121034514097not within 1,000,000,0000
12210345140978not within 1,000,000,0000

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