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.

A060995 Number of routes of length 2n on the sides of an octagon from a point to opposite point.

Original entry on oeis.org

0, 2, 8, 28, 96, 328, 1120, 3824, 13056, 44576, 152192, 519616, 1774080, 6057088, 20680192, 70606592, 241065984, 823050752, 2810071040, 9594182656, 32756588544, 111837988864, 381838778368, 1303679135744
Offset: 1

Views

Author

Henry Bottomley, May 13 2001

Keywords

Comments

Also the 2nd row in the 2-shuffle Phi_2(W(sqrt(2))) of the Fraenkel-Kimberling publication. - R. J. Mathar, Aug 17 2009
First differences of A056236. - Jeremy Gardiner, Aug 11 2013

Programs

  • Mathematica
    LinearRecurrence[{4,-2},{0,2},40] (* Harvey P. Dale, Mar 03 2012 *)
  • PARI
    { for (n=1, 200, if (n>2, a=4*a1 - 2*a2; a2=a1; a1=a, if (n==1, a=a2=0, a=a1=2)); write("b060995.txt", n, " ", a) ) } \\ Harry J. Smith, Jul 16 2009
    
  • Sage
    [(lucas_number2(n,4,2)-lucas_number2(n-1,4,2)) for n in range(0, 24)] # Zerinvary Lajos, Nov 10 2009

Formula

G.f.: 2*x^2/(1-4*x+2*x^2).
a(n) = (2 + sqrt(2))^(n-1)/sqrt(2) - (2-sqrt(2))^(n-1)/sqrt(2).
a(n) = 4*a(n-1)-2*a(n-2).
a(n) = 2*A007070(n-2)
G.f.: G(0)/(2*x) - 1/x, where G(k)= 1 + 1/( 1 - 4*x^2/(4*x^2 + 2*(1-2*x)^2/G(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Jul 16 2013