OFFSET
0,1
COMMENTS
Up to the sign of a(0), the same as the "all ones" sequence A000012. - M. F. Hasler, May 30 2020
LINKS
FORMULA
G.f.: (2x-1)/(1-x). - Philippe Deléham, Mar 19 2009
a(n) = (-1)^A000007(n) = (-1)^[n=0], where [.] is the Iverson bracket. - M. F. Hasler, May 30 2020
MATHEMATICA
PadRight[{-1}, 120, 1] (* Harvey P. Dale, Apr 05 2023 *)
PROG
(PARI) a(n)=if(n, 1, -1) \\ Charles R Greathouse IV, Jun 13 2013
(PARI) apply( {A158388(n)=1-!n*2}, [0..90]) \\ M. F. Hasler, May 30 2020
CROSSREFS
KEYWORD
sign,mult,easy
AUTHOR
Jaroslav Krizek, Mar 17 2009
STATUS
approved