OFFSET
1,7
COMMENTS
This sequence differs from A025672 first at index n=110.
LINKS
Mircea Merca, Binary Diagrams for Storing Ascending Compositions, Comp. J., 2012.
FORMULA
a(n) = floor((1/4)*ceiling(sqrt(4*n))^2) - n.
a(n^2) = a(n^2+n) = 0.
From Szymon Lukaszyk, Oct 27 2023: (Start)
a(n) = (-n) mod round(sqrt(n)).
a(n) = (A167268(n) - 2)/4. (End)
MAPLE
seq(floor((1/4)*ceil(sqrt(4*n))^2)-n, n=1..50)
PROG
(PARI) A216607(n)=floor((1/4)*ceil(sqrt(4*n))^2)-n;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mircea Merca, Sep 10 2012
STATUS
approved