a(0)=1. For n >= 1, a(n) = the smallest prime either of the form a(n-1)*k - 1 or of the form a(n-1)*k + 1, for some k >= 2.

A162278

a(0)=1. For n >= 1, a(n) = the smallest prime either of the form a(n-1)*k - 1 or of the form a(n-1)*k + 1, for some k >= 2.

Terms

    a(0) =1a(1) =2a(2) =3a(3) =5a(4) =11a(5) =23a(6) =47a(7) =281a(8) =563a(9) =2251a(10) =22511a(11) =225109a(12) =450217a(13) =2701301a(14) =10805203a(15) =43220813a(16) =2333923901a(17) =18671391209a(18) =560141736269

External references