A057428 Sign(-n): a(n) = 1 if -n > 0, = -1 if -n < 0, = 0 if n = 0.
0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1).
Programs
-
Mathematica
Table[Sign[-n], {n, 0, 80}] (* Arkadiusz Wesolowski, Sep 16 2012 *)
-
PARI
a(n) = sign(-n); \\ Michel Marcus, Apr 13 2022
Formula
G.f.: A(x) = -x/(1-x).
a(n) = -A057427(n).
Series reversion of g.f. A(x) is A(A(x)). - Nikolaos Pantelidis, Apr 13 2022