[go: up one dir, main page]

login
A057428 revision #30

A057428
Sign(-n): a(n) = 1 if -n > 0, = -1 if -n < 0, = 0 if n = 0.
4
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,1
FORMULA
G.f.: A(x) = -x/(1-x).
a(n) = -A057427(n).
a(n) = -((n+2) mod (n+1)) for n >= 0. - Paolo P. Lava, Aug 28 2007
Series reversion of g.f. A(x) is A(A(x)). - Nikolaos Pantelidis, Apr 13 2022
MATHEMATICA
Table[Sign[-n], {n, 0, 80}] (* Arkadiusz Wesolowski, Sep 16 2012 *)
PROG
(PARI) a(n) = sign(-n); \\ Michel Marcus, Apr 13 2022
CROSSREFS
First differences of A001489.
Cf. A057427.
Sequence in context: A165471 A165481 A165573 * A165574 A165581 A165586
KEYWORD
easy,sign
AUTHOR
Henry Bottomley, Sep 05 2000
STATUS
approved