%I #5 Mar 30 2012 18:39:18
%S 0,0,1,2,5,8,13,19,25,33,41,51,61,73,86,99,114,129,146,163,182,202,
%T 222,244,266,290,315,340,367,394,423,452,483,515,547,581,615,651,687,
%U 725,764,803,844,885,928,971,1016,1062,1108,1156,1204,1254,1305,1356,1409
%N a(n)=sum(k=1,n,floor(r*floor(k/r))) where r=sqrt(3).
%C More generally if r is irrational 1<r<2 then sum(k=1,n,floor(r*floor(k/r))) = n(n-3)/2 + ceiling(n/r)
%F a(n) = n(n-3)/2 + ceiling(n/sqrt(3))
%K nonn
%O 0,4
%A _Benoit Cloitre_, Jun 15 2003
|