The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124349 Numbers of directed Hamiltonian cycles on the n-prism graph. 4
6, 12, 10, 16, 14, 20, 18, 24, 22, 28, 26, 32, 30, 36, 34, 40, 38, 44, 42, 48, 46, 52, 50, 56, 54, 60, 58, 64, 62, 68, 66, 72, 70, 76, 74, 80, 78, 84, 82, 88, 86, 92, 90, 96, 94, 100, 98, 104, 102, 108, 106, 112, 110, 116, 114, 120, 118, 124, 122, 128, 126, 132, 130 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,1
LINKS
Eric Weisstein's World of Mathematics, Hamiltonian Cycle.
Eric Weisstein's World of Mathematics, Prism Graph.
FORMULA
a(n) = 2*n + (1-(n mod 2))*4.
From Colin Barker, Aug 22 2012: (Start)
a(n) = a(n-1)+a(n-2)-a(n-3).
G.f.: 2*x^3*(3+3*x-4*x^2)/((1-x)^2*(1+x)). (End)
a(n) = 2*A014681(n+1). - R. J. Mathar, Jan 25 2016
E.g.f.: 2*(2 + x)*cosh(x) + 2*x*sinh(x) - 2*(2 + x + 2*x^2). - Stefano Spezia, Jan 28 2024
MAPLE
seq( 2*n + (1-(n mod 2))*4, n=3..100); # Robert Israel, Mar 14 2016
MATHEMATICA
Table[2 n + (1 - Mod[n, 2]) 4, {n, 3, 100}] (* Vincenzo Librandi, Jan 26 2016 *)
PROG
(Magma) [2*n+(1-(n mod 2))*4: n in [3..80]]; // Vincenzo Librandi, Jan 26 2016
(PARI) Vec(2*x^3*(3+3*x-4*x^2)/((1-x)^2*(1+x)) + O(x^100)) \\ Altug Alkan, Mar 14 2016
CROSSREFS
Sequence in context: A279606 A352482 A164378 * A360719 A365787 A315566
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Oct 26 2006
EXTENSIONS
Name clarified by Andrew Howroyd, Mar 14 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 3 07:50 EDT 2024. Contains 373054 sequences. (Running on oeis4.)