OFFSET
1,1
FORMULA
a(n) = floor(m + n + 2*sqrt(m*n - 1))/4) where m = ((n-1) mod 4) + 1.
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved