OFFSET
1,1
LINKS
Gheorghe Coserea, Table of n, a(n) for n = 1..10000
T. Forbes, Prime k-tuplets
PROG
(PARI)
a(n) = my(x = (sqrtint(1+8*n)-1)\2); (x+n)*(x+n+1)/2 - n;
vector(51, n, a(n)) \\ Gheorghe Coserea, Mar 25 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls and Amarnath Murthy, Jul 14 2003
EXTENSIONS
Offset corrected by Gheorghe Coserea, Mar 25 2016
STATUS
approved