A001478 The negative integers.
-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, -25, -26, -27, -28, -29, -30, -31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, -42, -43, -44, -45, -46, -47, -48, -49, -50, -51, -52, -53, -54, -55, -56, -57, -58, -59, -60, -61, -62, -63, -64, -65
Offset: 1
Links
- Felix Fröhlich, Table of n, a(n) for n = 1..10000 (first 1000 terms from David Wasserman)
- Tanya Khovanova, Recursive Sequences
- Index entries for "core" sequences
- Index entries for linear recurrences with constant coefficients, signature (2,-1).
Programs
-
Maple
A001478 := n->-n;
-
Mathematica
Table[ -n, {n, 1, 50}] (* Stefan Steinerberger, Apr 01 2006 *) Range[-1, -65, -1] (* Alonso del Arte, Oct 06 2013 *)
-
PARI
a(n)=-n
-
Python
def a(n): return -n # Michael S. Branicky, Nov 13 2022
Formula
a(n) = -n.
G.f.: -x/(1-x)^2.
G.f. A(x) satisfies A(x) + A(-x) = 4A(x^2), A(x)A(-x) = A(x^2), A(x)^2 + A(x^2) = 4A(x)A(x^2). - Michael Somos, Mar 23 2004
a(n) = -A000027(n). - Felix Fröhlich, Jul 23 2021