Take three consecutive primes starting with the n-th prime. Calculate d(i,j) = abs(prime(i) - prime(j)), for all {i,j}, i.e., all possible differences. a(n) is the number of distinct differences (which can be either 3 or 2).

A098726

Take three consecutive primes starting with the n-th prime. Calculate d(i,j) = abs(prime(i) - prime(j)), for all {i,j}, i.e., all possible differences. a(n) is the number of distinct differences (which can be either 3 or 2).

Terms

    a(0) =3a(1) =2a(2) =3a(3) =3a(4) =3a(5) =3a(6) =3a(7) =3a(8) =3a(9) =3a(10) =3a(11) =3a(12) =3a(13) =3a(14) =2a(15) =3a(16) =3a(17) =3a(18) =3a(19) =3a(20) =3a(21) =3a(22) =3a(23) =3a(24) =3a(25) =3a(26) =3a(27) =3a(28) =3a(29) =3

External references