OFFSET
1,4
COMMENTS
As n increases sum(a(i)) for i=1 to n tends to e^gamma/2*n*(n+1)/2, notice that n*(n+1)/2 is triangular number. [From Pierre CAMI, Oct 16 2008]
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..500
EXAMPLE
2*(2+1)-1=5 prime so a(1)=1 6*(6+1)-1=41 prime so a(2)=1 30*(31)-1=929 prime so a(3)=1.
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Sep 26 2008, Oct 16 2008
STATUS
approved