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.

Showing 1-2 of 2 results.

A153259 a(n)=n^3-(3*(n+3))^2.

Original entry on oeis.org

-81, -143, -217, -297, -377, -451, -513, -557, -577, -567, -521, -433, -297, -107, 143, 459, 847, 1313, 1863, 2503, 3239, 4077, 5023, 6083, 7263, 8569, 10007, 11583, 13303, 15173, 17199, 19387, 21743, 24273, 26983, 29879, 32967, 36253, 39743
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_]:=n^3-(3*(n+3))^2;lst={};Do[AppendTo[lst,a[n]],{n,0,5!}];lst
    Table[n^3-(3(n+3))^2,{n,0,40}] (* or *) LinearRecurrence[{4,-6,4,-1},{-81,-143,-217,-297},40] (* Harvey P. Dale, Jul 10 2013 *)
  • PARI
    a(n)=n^3-(3*n+9)^2 \\ Charles R Greathouse IV, Oct 18 2022

Formula

a(1)=-81, a(2)=-143, a(3)=-217, a(4)=-297, a(n)=4*a(n-1)-6*a(n-2)+ 4*a(n-3)- a(n-4). - Harvey P. Dale, Jul 10 2013

A153260 a(n) = n^3 - 3*(n+3)^2.

Original entry on oeis.org

-27, -47, -67, -81, -83, -67, -27, 43, 149, 297, 493, 743, 1053, 1429, 1877, 2403, 3013, 3713, 4509, 5407, 6413, 7533, 8773, 10139, 11637, 13273, 15053, 16983, 19069, 21317, 23733, 26323, 29093, 32049, 35197, 38543, 42093, 45853, 49829, 54027
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    [n^3-3*(n+3)^2: n in [0..40] ]; // Vincenzo Librandi, Aug 25 2011
    
  • Mathematica
    a[n_]:=n^3-3*(n+3)^2; a/@ Range[0, 50]
    Table[n^3-3(n+3)^2,{n,0,50}] (* or *) LinearRecurrence[{4,-6,4,-1},{-27,-47,-67,-81},51] (* Harvey P. Dale, Aug 24 2011 *)
  • PARI
    vector(40, n, n--; n^3-3*(n+3)^2) \\ G. C. Greubel, Nov 10 2018

Formula

a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(0)=-27, a(1)=-47, a(2)=-67, a(3)=-81. - Harvey P. Dale, Aug 24 2011
G.f.: (x*(x*(13*x - 41) + 61) - 27)/(x-1)^4. - Harvey P. Dale, Aug 24 2011
E.g.f.: (-27 - 20*x + x^3)*exp(x). - G. C. Greubel, Nov 10 2018

Extensions

Offset changed from 1 to 0 by Vincenzo Librandi, Aug 25 2011
Showing 1-2 of 2 results.