OFFSET
1,1
FORMULA
a(n) = n - 1 + ceiling(1/2 + ((n+1)/4)^(1/2)).
a(n) = n + floor((n^(1/2)+1)/2). - Chai Wah Wu, Oct 05 2024
MATHEMATICA
Table[n-1+Ceiling[1/2+((n+1)/4)^(1/2)], {n, 100}]
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 01 2011
STATUS
approved