OFFSET
0,6
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
FORMULA
a(n) = floor( -sqrt(2)*cos(n + Pi/4) ). - R. J. Mathar, Oct 03 2010
MAPLE
A181059 := proc(n) -sqrt(2)*cos(n+Pi/4) ; floor(%) ; end proc: seq(A181059(n), n=0..120) ; # R. J. Mathar, Oct 03 2010
MATHEMATICA
Table[Floor[Sin[n]-Cos[n]], {n, 0, 120}] (* Harvey P. Dale, Jun 01 2018 *)
PROG
(Magma) [Floor(Sin(n) - Cos(n)): n in [0..120]]; // G. C. Greubel, Apr 05 2021
(Sage) [floor(-sqrt(2)*cos(n+pi/4)) for n in (0..120)] # G. C. Greubel, Apr 05 2021
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Jonathan D. B. Hodgson, Oct 01 2010
EXTENSIONS
More terms from R. J. Mathar, Oct 03 2010
STATUS
approved