In one of books for discrete mathematics i came across sum to calculate $$\sum_{k=0}^n \lceil \sqrt{n} \rceil$$ which was fairly easy, but this sum intrigued me what is generating function for $$\sum_{n=0}^\infty \lceil \sqrt{n} \rceil x^n $$ so from that i can easily calculate $$\sum_{n=0}^\infty x^n \sum_{k=0}^n \lceil \sqrt{k} \rceil $$
My attempt:
Our sequence looks like this $0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4 \dots$ We see, difference between adjancent positions is 0 or 1. Let's write it down: $0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, \dots$
First zero seems quite uncomfortable, so let's ignore it (but we will have to multiply final generating function by $x$).
So, now we deal with $1, 1, 0, 0, 1, 0, 0, 0, 0, 1, \dots$ Between adjancent ones there is: 0 zeros, then 2 zeros, then 4 zeros, 6 zeros and so on...
I can't really see some pattern here (how to pack zeros and ones in one sequence), i would really appreciate some hints or solutions to this, because it appears as really interesting problem. Cheers