1,1

Table of n, a(n) for n=1..25.

n=2: prime successor of a(2-1)=2 is 3: 5 mod 3 = 2 is prime, therefore a(2)=5;

n=3: prime successor of a(3-1)=5 is 7: 11 mod 7 = 4, 13 mod 7 = 6, 17 mod 7 = 3 is prime, therefore a(3)=17.

Sequence in context: A263638 A118500 A323427 * A081763 A013918 A007351

Adjacent sequences: A080895 A080896 A080897 * A080899 A080900 A080901

nonn,easy

Reinhard Zumkeller, Mar 31 2003

More terms from Sam Alexander, Feb 28 2005

approved