a(n) is the smallest odd prime such that (1) a(n) doesn't already appear in the sequence; (2) the n-th partial sum is divisible by n; and (3) the n-th partial sum is relatively prime to n+1.

A075557

a(n) is the smallest odd prime such that (1) a(n) doesn't already appear in the sequence; (2) the n-th partial sum is divisible by n; and (3) the n-th partial sum is relatively prime to n+1.

Terms

    a(0) =3a(1) =5a(2) =7a(3) =13a(4) =37a(5) =31a(6) =23a(7) =17a(8) =53a(9) =11a(10) =251a(11) =29a(12) =79a(13) =43a(14) =73a(15) =61a(16) =97a(17) =67a(18) =107a(19) =173a(20) =59a(21) =103a(22) =199a(23) =163a(24) =71a(25) =149a(26) =47a(27) =101a(28) =509a(29) =89

External references