a(0)=2; for n>0, a(n) = smallest prime not occurring earlier in the sequence such that a(n-1)+a(n) is a multiple of n^2. If no such prime exists, the sequence terminates.

A224223

a(0)=2; for n>0, a(n) = smallest prime not occurring earlier in the sequence such that a(n-1)+a(n) is a multiple of n^2. If no such prime exists, the sequence terminates.

Terms

    a(0) =2a(1) =3a(2) =5a(3) =13a(4) =19a(5) =31a(6) =41a(7) =449a(8) =127a(9) =197a(10) =103a(11) =139a(12) =149a(13) =1879a(14) =277a(15) =173a(16) =83a(17) =5119a(18) =389a(19) =1777a(20) =223a(21) =659a(22) =1277a(23) =839a(24) =313a(25) =937a(26) =1091a(27) =367a(28) =1201a(29) =5527

External references