%I #26 Feb 15 2019 14:56:10
%S 1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,2,1,1,1,0,1,
%T 0,1,1,1,0,1,0,2,1,1,1,0,0,0,1,1,1,0,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,0,
%U 1,0,1,0,1,1,1,1,0,0,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,1,1
%N a(n) = floor(n*t^2) - A003145(n), where t = 1.8392867... is the tribonacci constant A058265.
%C a(n) is in {-1, 0, 1, 2}, but the first n for which -1 appears is n = 329. - _Jeffrey Shallit_, Nov 19 2016
%H N. J. A. Sloane, <a href="/A276799/b276799.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = A277722(n) - A003145(n). - _R. J. Mathar_, Nov 02 2016
%Y Cf. A003144, A003145, A003146, A275926, A058265, A276800, A277721, A278352 (positions of -1's).
%K sign
%O 1,29
%A _N. J. A. Sloane_, Oct 28 2016