a(1)=1 and, for n>1, a(n) is the smallest positive integer such that 1+S^2 is prime, where S=Sum[k, k=a(n-1)+1,...,a(n)].

A120745

a(1)=1 and, for n>1, a(n) is the smallest positive integer such that 1+S^2 is prime, where S=Sum[k, k=a(n-1)+1,...,a(n)].

Terms

    a(0) =1a(1) =2a(2) =17a(3) =42a(4) =57a(5) =62a(6) =122a(7) =162a(8) =177a(9) =222a(10) =242a(11) =297a(12) =442a(13) =557a(14) =577a(15) =582a(16) =637a(17) =662a(18) =677a(19) =722a(20) =757a(21) =762a(22) =842a(23) =882a(24) =897a(25) =957a(26) =1002a(27) =1022a(28) =1077a(29) =1102

External references