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.

A024031 a(n) = 3^n - n^8.

Original entry on oeis.org

1, 2, -247, -6534, -65455, -390382, -1678887, -5762614, -16770655, -43027038, -99940951, -214181734, -429450255, -814136398, -1471006087, -2548541718, -4251920575, -6846617278, -10632540087, -15821301574, -22113215599
Offset: 0

Views

Author

Keywords

Programs

  • Magma
    [3^n-n^8: n in [0..35]]; // Vincenzo Librandi, May 13 2011
  • Mathematica
    Table[3^n-n^8,{n,0,30}] (* or *) LinearRecurrence[{12,-63,192,-378,504,-462,288,-117,28,-3},{1,2,-247,-6534,-65455,-390382,-1678887,-5762614,-16770655,-43027038},30] (* Harvey P. Dale, Sep 25 2014 *)

Formula

a(n) = 12*a(n-1) - 63*a(n-2) + 192*a(n-3) - 378*a(n-4) + 504*a(n-5) - 462*a(n-6) + 288*a(n-7) - 117*a(n-8) + 28*a(n-9) - 3*a(n-10); a(0)=1, a(1)=2, a(2)=-247, a(3)=-6534, a(4)=-65455, a(5)=-390382, a(6)=-1678887, a(7)=-5762614, a(8)=-16770655, a(9)=-43027038. - Harvey P. Dale, Sep 25 2014