<p>Can anyone please solve this sequence and give me the formula?
0,1,1,2,2,3,3,4... every positive integer is repeated.</p>
<p>If it's any help, I got as far as n/2 for even numbers and (n/2)-(1/2) for odd numbers? And every successive number differs by +/- 1/2, as in (n/2)-(1/2), (n/2)-(-1/2)+(1/2), (n/2)-(1/2)+(1/2)-(1/2) and so on.</p>
<p>Okay, I got it. I’m sorry, we use a different terminology here, so I was confused for a second. Truncate would be the ceiling function, right? But the floor function would apply here, no?</p>
<p>Another question (sorry, I have a calculus exam tomorrow and there’s a lot of last minute cramming):
I need to make this converge to 1/2,</p>
<pre><code> ((n^2 - n)^1/2) - n
</code></pre>
<p>What I’m doing is completing the square in the underroot. So I get ((n-1/2)^2 - (1/2)^2)^1/2 -n. I then discard the (1/2)^2 because I’m taking (n-1/2)^2 to be equal to infinity and (1/2)^2 becomes negligible in comparison. Is this legit? As in, does this stand? Because I can’t find any other way to make it converge to 1/2.</p>