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-3 of 3 results.

A100131 a(n) = Sum_{k=0..floor(n/4)} binomial(n-2k, 2k)*2^(n-4k).

Original entry on oeis.org

1, 2, 4, 8, 17, 38, 88, 208, 497, 1194, 2876, 6936, 16737, 40398, 97520, 235424, 568353, 1372114, 3312564, 7997224, 19306993, 46611190, 112529352, 271669872, 655869073, 1583407994, 3822685036, 9228778040, 22280241089, 53789260190, 129858761440, 313506783040
Offset: 0

Views

Author

Paul Barry, Nov 06 2004

Keywords

Comments

Binomial transform of 1,1,1,1,2,2,4,4,8,8,... (g.f.: (1-x)(1+x)^2/(1-2x^2)).
Row sums of number triangle A108350. - Paul Barry, May 31 2005

Crossrefs

Programs

  • Magma
    I:=[1, 2, 4, 8]; [n le 4 select I[n] else 4*Self(n-1)-4*Self(n-2)+Self(n-4): n in [1..30]]; // Vincenzo Librandi, Jun 25 2012
  • Maple
    with(combinat): seq((n+1+fibonacci(n+1, 2))/2, n=0..30); # Zerinvary Lajos, Jun 02 2008
  • Mathematica
    CoefficientList[Series[(1-2x)/((1-2x)^2-x^4),{x,0,40}],x]  (* Harvey P. Dale, Mar 22 2011 *)
    LinearRecurrence[{4,-4,0,1},{1,2,4,8},40] (* Vincenzo Librandi, Jun 25 2012 *)

Formula

G.f.: (1-2x)/((1-2x)^2-x^4) = (1-2x)/((1-x)^2(1-2x-x^2));
a(n) = 4a(n-1) - 4a(n-2) + a(n-4);
a(n) = ((sqrt(2)+1)^(n+1) + (sqrt(2)-1)^(n+1)(-1)^n)/(4*sqrt(2)) + (n+1)/2;
a(n) = Sum_{k=0..n} (1-k)*A000129(n-k+1).
a(n) = Sum_{k=0..n} Sum_{j=0..n-k} binomial(k, j)*binomial(n-j, k)*((j+1) mod 2). - Paul Barry, May 31 2005
a(n) = (1/2)*(Pell(n+1) + n + 1), where Pell(n) = A000129(n). - Ralf Stephan, May 15 2007 [corrected by Jon E. Schoenfield, Feb 19 2019]

A100132 a(n) = Sum_{k=0..floor(n/4)} C(n-2k,2k) * 2^(n-3k).

Original entry on oeis.org

1, 2, 4, 8, 18, 44, 112, 288, 740, 1896, 4848, 12384, 31624, 80752, 206208, 526592, 1344784, 3434272, 8770368, 22397568, 57198368, 146071744, 373034240, 952645120, 2432840256, 6212924032, 15866403584, 40519208448, 103476899968
Offset: 0

Views

Author

Paul Barry, Nov 06 2004

Keywords

Comments

Binomial transform of 1,1,1,1,3,3,7,7,41,... (g.f. (1-x)(1+x)^2/(1-2x^2-x^4)).

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{4,-4,0,2},{1,2,4,8},30] (* Harvey P. Dale, Jun 07 2016 *)
  • PARI
    a(n) = sum(k=0, n\4, binomial(n-2*k, 2*k)*2^(n-3*k)); \\ Michel Marcus, Oct 09 2021

Formula

G.f.: (1-2x)/((1-2x)^2-2x^4).
a(n) = 4*a(n-1) - 4*a(n-2) + 2*a(n-3).
a(n) = Sum_{k=0..floor(n/2)} C(n-k, k)2^(n-3k/2)(1+(-1)^k)/2. - Paul Barry, Jan 22 2005

A100139 a(n) = Sum_{k=0..floor(n/6)} C(n-3k,3k) * 3^k * 2^(n-6k).

Original entry on oeis.org

1, 2, 4, 8, 16, 32, 67, 152, 376, 992, 2704, 7424, 20233, 54398, 144112, 376736, 974368, 2500544, 6385435, 16264220, 41396788, 105423776, 268818064, 686499008, 1755723793, 4495691834, 11521647916, 29543647160, 75774096832, 194353495424
Offset: 0

Views

Author

Paul Barry, Nov 06 2004

Keywords

Comments

Binomial transform of 1,1,1,1,1,1,4,4,13,13,31,... with g.f. (1-x)^2(1+x)^3/(1-3x^2+3x^4-4x^6)=(1+x)(1-x^2)^2/((1-x^2)^3-3x^6).

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{6,-12,8,0,0,3},{1,2,4,8,16,32},30] (* Harvey P. Dale, Sep 30 2015 *)

Formula

G.f.: (1-2x)^2/((1-2x)^3 - 3x^6).
a(n) = 6*a(n-1) -12*a(n-2) + 8*a(n-3) + 3*a(n-6).
Showing 1-3 of 3 results.