OFFSET
-50,1
COMMENTS
The first 101 terms are the central 101 terms of the integers.
The reason for including this entry is to provide search results for sequences of the form -k, -k+1, -k+2, ... for small positive k.
LINKS
FORMULA
a(n) = 2 a(n-1) - a(n-2). G.f.: x^(-50)*(-50 + 51*x)/(1 - x)^2. - M. F. Hasler, Apr 18 2015
MATHEMATICA
Range[101] - 51 (* Alonso del Arte, Apr 14 2015 *)
PROG
(Magma) [n: n in [-50..50]]; // Vincenzo Librandi, Apr 14 2015
(Python) list(range(-50, 51)) # Danny Rorabaugh, Apr 18 2015
(PARI) vector(101, n, n-51) \\ In the spirit of other "programs", but actually the result does not have offset -50. - M. F. Hasler, Apr 19 2015
(PARI) A256958(n)=n \\ M. F. Hasler, Apr 19 2015
CROSSREFS
The first 101 terms are the 50th row of triangle A196199. - Omar E. Pol, Apr 14 2015
KEYWORD
sign,easy
AUTHOR
Rick L. Shepherd and N. J. A. Sloane, Apr 14 2015
EXTENSIONS
Revised by N. J. A. Sloane, Apr 19 2015 at the suggestion of M. F. Hasler
STATUS
approved