login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094556 Number of walks of length n between opposite vertices on a triangular prism. 2
0, 1, 0, 7, 8, 51, 100, 407, 1008, 3451, 9500, 30207, 87208, 268451, 791700, 2402407, 7152608, 21567051, 64482700, 193885007, 580781208, 1744091251, 5228778500, 15693326007, 47065997008, 141225953051, 423621935100, 1270977653407 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

FORMULA

G.f.: x(1-2x+2x^2)/((1-x)(1+2x)(1-3x)); a(n)=3^n/6-(-2)^n/3-1/6+0^n/3; a(n)=2a(n-1)+5a(n-2)-6a(n-3).

MATHEMATICA

LinearRecurrence[{2, 5, -6}, {0, 1, 0, 7}, 30] (* or *) CoefficientList[ Series[ x (1-2x+2x^2)/((1-x)(1+2x)(1-3x)), {x, 0, 30}], x] (* From Harvey P. Dale, Jul 13 2011 *)

CROSSREFS

Cf. A094554, A094555.

Sequence in context: A116554 A038274 A201919 * A041023 A041108 A137145

Adjacent sequences:  A094553 A094554 A094555 * A094557 A094558 A094559

KEYWORD

easy,nonn

AUTHOR

Paul Barry (pbarry(AT)wit.ie), May 11 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 19:13 EST 2012. Contains 206085 sequences.