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.

A138380 First differences of A138377.

Original entry on oeis.org

1, 2, -1, -2, -4, -8, 4, 8, 16, 32, -16, -32, -64, -128, 64, 128, 256, 512, -256, -512, -1024, -2048, 1024, 2048, 4096, 8192, -4096, -8192, -16384, -32768, 16384, 32768, 65536, 131072, -65536, -131072, -262144, -524288, 262144, 524288, 1048576, 2097152
Offset: 0

Views

Author

Paul Curtz, May 08 2008

Keywords

Comments

All terms are powers of 2 (see comment in A138377). - Michel Marcus, Dec 01 2015

Crossrefs

Cf. A138377.

Programs

  • Mathematica
    Differences[LinearRecurrence[{0,0,0,-4},{0,1,3,2},60]] (* Harvey P. Dale, Mar 19 2012 *)
    LinearRecurrence[{0, 0, 0, -4},{1, 2, -1, -2},59] (* Ray Chandler, Aug 03 2015 *)
  • PARI
    Vec((1-x)*(1+x)*(1+2*x)/((1-2*x+2*x^2)*(1+2*x+2*x^2)) + O(x^100)) \\ Colin Barker, Dec 01 2015

Formula

From Colin Barker, Dec 01 2015: (Start)
a(n) = -4*a(n-4) for n>3.
G.f.: (1-x)*(1+x)*(1+2*x) / ((1-2*x+2*x^2)*(1+2*x+2*x^2)).
(End)

Extensions

More terms from Harvey P. Dale, Mar 19 2012
Missing terms added by Colin Barker, Dec 01 2015