This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A270825 #8 Apr 05 2016 00:33:35 %S A270825 0,1,0,-1,1,3,1,-1,1,4,1,-2,1,4,1,-2,2,6,2,-2,2,6,2,-2,2,7,2,-3,2,7,2, %T A270825 -3,2,7,2,-3,3,9,3,-3,3,9,3,-3,3,9,3,-3,3,10,3,-4,3,10,3,-4,3,10,3,-4, %U A270825 3,10,3,-4,4,12,4,-4,4,12,4,-4,4,12,4,-4,4 %N A270825 a(n) = Sum_{i=0..n} (-1)^floor(i/2)*floor(sqrt(i)). %F A270825 a(4m)=floor(sqrt(m)), a(4m+1)=floor(3/2*floor(sqrt(4m+1))), a(4m+2)=floor(sqrt(m)), a(4m+3)=-floor((1+sqrt(4m+3))/2). %e A270825 Letting [] denote the floor function, a(7) = [sqrt(0)]+[sqrt(1)]-[sqrt(2)]-[sqrt(3)]+[sqrt(4)]+[sqrt(5)]-[sqrt(6)]-[sqrt(7)] = 0+1-1-1+2+2-2-2 = -1. %t A270825 Print[Table[Sum[(-1)^(Floor[i/2])*Floor[Sqrt[i]],{i,0,n}],{n,0,100}]] %o A270825 (PARI) a(n)=sum(i=0,n,(-1)^(floor(i/2))*floor(sqrt(i))) %Y A270825 Cf. A268173, A022554, A270370, A031876, A032512, A032513, A032514, A032515, A032516, A032517, A032518, A032519, A032520, A032521. %K A270825 sign,easy %O A270825 0,6 %A A270825 _John M. Campbell_, Mar 23 2016