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.

A168074 Duplicate of A061891.

Original entry on oeis.org

1, 1, 4, 7, 7, 10, 13, 13, 16, 19, 19, 22, 25, 25, 28, 31, 31, 34, 37, 37, 40, 43, 43, 46, 49, 49, 52, 55, 55, 58, 61, 61, 64, 67, 67, 70, 73, 73, 76, 79, 79, 82, 85, 85, 88, 91, 91, 94, 97, 97, 100, 103, 103, 106, 109, 109, 112, 115, 115, 118
Offset: 0

Views

Author

Paul Barry, Nov 18 2009

Keywords

Programs

  • Magma
    I:=[1,1,4,7]; [n le 4 select I[n] else Self(n-1)+Self(n-3)-Self(n-4): n in [1..70]]; // Vincenzo Librandi, Jul 10 2016
  • Mathematica
    LinearRecurrence[{1, 0, 1, -1}, {1, 1, 4, 7}, 50] (* G. C. Greubel, Jul 09 2016 *)
    CoefficientList[Series[(1 + 3 x^2 + 2 x^3) / ((1 - x)^2 (1 + x + x^2)), {x, 0, 60}], x] (* Vincenzo Librandi, Jul 10 2016 *)
  • PARI
    Vec((1+3*x^2+2*x^3)/((1-x)^2*(1+x+x^2)) + O(x^70)) \\ Michel Marcus, Dec 03 2014
    

Formula

G.f.: (1+3x^2+2x^3)/((1-x)^2*(1+x+x^2)).
a(n) = A168075(n)/(-3)^n.
a(n) = A061891(n). - Georg Fischer, Oct 14 2018

Extensions

Corrected by R. J. Mathar, Dec 03 2014

A168075 Expansion of (1+27x^2-54x^3)/((1+3x)^2*(1-3x+9 x^2)).

Original entry on oeis.org

1, -3, 36, -189, 567, -2430, 9477, -28431, 104976, -373977, 1121931, -3897234, 13286025, -39858075, 133923132, -444816117, 1334448351, -4390765542, 14334558093, -43003674279, 139471376040, -449795187729, 1349385563187, -4330586226042, 13839047287569
Offset: 0

Views

Author

Paul Barry, Nov 18 2009

Keywords

Comments

Hankel transform of A168076.

Crossrefs

Programs

  • Magma
    I:=[1,-3,36,-189]; [n le 4 select I[n] else -3*Self(n-1)-27*Self(n-3)-81*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Jul 10 2016
  • Mathematica
    LinearRecurrence[{-3, 0, -27, -81}, {1, -3, 36, -189}, 50] (* G. C. Greubel, Jul 09 2016 *)
    CoefficientList[Series[(1 + 27 x^2 - 54 x^3) / ((1 + 3 x)^2 (1 - 3 x + 9 x^2)), {x, 0, 40}], x] (* Vincenzo Librandi, Jul 10 2016 *)
  • PARI
    Vec((1+27*x^2-54*x^3)/((1+3*x)^2*(1-3*x+9*x^2))+ O(x^30)) \\ Michel Marcus, Dec 03 2014
    

Formula

a(n) = (-3)^n*A061891(n).
a(n) = 2*(-3)^n*n + 3^n*(sin(Pi*n/3)/sqrt(3) + cos(Pi*n/3)). - Ilya Gutkovskiy, Jul 10 2016

Extensions

Corrected by R. J. Mathar, Dec 03 2014
Showing 1-2 of 2 results.