cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A352779 Powers of -3: a(n) = (-3)^n.

Original entry on oeis.org

1, -3, 9, -27, 81, -243, 729, -2187, 6561, -19683, 59049, -177147, 531441, -1594323, 4782969, -14348907, 43046721, -129140163, 387420489, -1162261467, 3486784401, -10460353203, 31381059609, -94143178827, 282429536481, -847288609443, 2541865828329, -7625597484987
Offset: 0

Views

Author

L. Edson Jeffery, Apr 04 2022

Keywords

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{-3}, {1}, 28]
    CoefficientList[Series[1/(1+3*x), {x,0,27}], x]
    Table[(-3)^n, {n,0,27}]
  • PARI
    a(n)=(-3)^n \\ Winston de Greef, Mar 19 2023

Formula

a(0) = 1; a(n) = -3*a(n-1), n >= 1.
G.f.: 1/(1+3*x).
a(n) = (-1)^n*A000244(n).
E.g.f.: 1/exp(3*x). - Elmo R. Oliveira, Dec 17 2023