login
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.
0

%I #7 Mar 11 2014 01:32:34

%S 1,2,3,5,11,23,47,281,563,2251,22511,225109,450217,2701301,10805203,

%T 43220813,2333923901,18671391209,560141736269,5601417362689,

%U 22405669450757,448113389015141,3584907112121129,186415169830298707

%N 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.

%Y A061092, A072532

%K nonn

%O 0,2

%A _Leroy Quet_, Jun 29 2009

%E Extended by _R. J. Mathar_, Jul 04 2009