A390812a(n) is the number of pairs (i, j) with 1 <= i < j < n such that the prime-points (i, prime(i)), (j, prime(j)), and (n, prime(n)) are collinear.

0, 0, 0, 1, 0, 0, 1, 2, 3, 1, 1, 3, 6, 3, 7, 10, …

The first 5 terms appear at position 17,536.

…68091323654494853667680000010652624854730558615989991…
position 17,536
termsstringfirst positionoccurrences
103299,993,942
20030710,004,524
30006011,000,897
4000114,202100,320
50001017,5369,873
60001002,044,0071,006
700010019,756,274106
80001001215,532,59913
9000100123not within 1,000,000,0000
100001001231not within 1,000,000,0000
1100010012311not within 1,000,000,0000
12000100123113not within 1,000,000,0000

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