OFFSET
1,2
FORMULA
a(n) = round(sqrt(1/2)*n*(n+1)). - Ralf Stephan, Jan 24 2003
PROG
(PARI) for(n=1, 100, print1(round(sqrt(1/2)*n*(n+1))", ")).
(Python)
from math import isqrt
def A027924(n): return isqrt((n*(n+1))**2<<1)+1>>1 # Chai Wah Wu, Jun 19 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Ralf Stephan, Jan 24 2003
STATUS
approved