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 8 terms appear at position 19,392.
141592653589793238462643383279…
…64062862089986280348253421170679821480865132823066…
…906949129331367702898915210475216205696602405803815…
…8125547095890455635792122103334669749923563025494780…
…92155233709607483329234921034514626437449805596103307…
…921552337096074833292349210345146264374498055961033079…
…9215523370960748332923492103451462643744980559610330799…
…92155233709607483329234921034514626437449805596103307994…
| terms | string | first position | occurrences |
|---|---|---|---|
| 1 | 2 | 6 | 100,002,410 |
| 2 | 21 | 93 | 10,000,534 |
| 3 | 210 | 1,317 | 999,860 |
| 4 | 2103 | 8,733 | 100,289 |
| 5 | 21034 | 19,392 | 10,093 |
| 6 | 210345 | 19,392 | 1,013 |
| 7 | 2103451 | 19,392 | 93 |
| 8 | 21034514 | 19,392 | 10 |
| 9 | 210345140 | not within 1,000,000,000 | 0 |
| 10 | 2103451409 | not within 1,000,000,000 | 0 |
| 11 | 21034514097 | not within 1,000,000,000 | 0 |
| 12 | 210345140978 | not within 1,000,000,000 | 0 |
Searched the first 1,000,000,000 digits. Strings longer than 12 digits are not indexed.