a(1)=1. a(n) = the smallest positive integer not occurring earlier in the sequence such that the n-th prime is congruent to a(n) (mod n).

A125718

a(1)=1. a(n) = the smallest positive integer not occurring earlier in the sequence such that the n-th prime is congruent to a(n) (mod n).

Terms

    a(0) =1a(1) =3a(2) =2a(3) =7a(4) =6a(5) =13a(6) =10a(7) =11a(8) =5a(9) =9a(10) =20a(11) =25a(12) =15a(13) =29a(14) =17a(15) =21a(16) =8a(17) =43a(18) =48a(19) =31a(20) =52a(21) =35a(22) =14a(23) =41a(24) =22a(25) =23a(26) =49a(27) =51a(28) =80a(29) =53

External references