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 A059652 #2 May 01 2014 02:46:11 %S A059652 0,-1,0,0,1,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,0,-1,0,0,1,-1,0,0,1,-1,0,0,0, %T A059652 0,0,0,0,0,0,-1,0,0,1,-1,0,0,1,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,0,-1,0,0, %U A059652 1,-1,0,0,1,-1,0,0,0,0,0,-1,0,0,0,-1,0,0,1,-1,0,0,1,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,0,-1,0,0,1,-1,0,0,1,-1,0,0,0,0,0,-1,0,0,0,-1,0,0 %N A059652 a(n) = [[(k^2)*n]-(k*[k*n])], where k = sqrt(3/2) and [] is the floor function. %C A059652 The values of (floor((k^2)*j)-(k*(floor(k*j)))) for j=0..45, with k=2^(1/3), are 0, -0.224746, 0.550508, 0.325762, 1.101016, -0.348476, 0.426778, 0.202032, 0.97729, ... %p A059652 Digits := 89; floor_diffs_floored(sqrt(3/2),120); %Y A059652 A059648 gives similar sequence for k=sqrt(2). Positions of ones: A059653, positions of minus ones: A059655. %K A059652 sign %O A059652 0,1 %A A059652 _Antti Karttunen_, Feb 03 2001