a(n) is the smallest prime not yet in the sequence such that pi(a(n)) divides the sum a(n) + n, or -1 if no such prime exists.

A377788

a(n) is the smallest prime not yet in the sequence such that pi(a(n)) divides the sum a(n) + n, or -1 if no such prime exists.

Terms

    a(0) =2a(1) =31a(2) =3a(3) =5a(4) =7a(5) =3067a(6) =89a(7) =307a(8) =11a(9) =3049a(10) =13a(11) =313a(12) =19a(13) =23539a(14) =3023a(15) =269a(16) =223a(17) =17a(18) =251a(19) =23497a(20) =29a(21) =23a(22) =37a(23) =41a(24) =911a(25) =59a(26) =43a(27) =47a(28) =61a(29) =1303051

External references