The floor-half generating function is
Summing for gives
so
Since
a particular solution is
Adding the homogeneous term and imposing gives . Therefore