[go: up one dir, main page]

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!)
Revision History for A003689 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A003689 Number of Hamiltonian paths in K_3 X P_n.
(history; published version)
#35 by Charles R Greathouse IV at Thu Sep 08 08:44:32 EDT 2022
PROG

(MAGMAMagma) [3, 30] cat [128*3^(n-2)-(21*n+57)*2^(n-2): n in [3..30]]; // Vincenzo Librandi, Apr 27 2014

Discussion
Thu Sep 08 08:44
OEIS Server: https://oeis.org/edit/global/2944
#34 by Michel Marcus at Fri Dec 18 10:56:48 EST 2020
STATUS

reviewed

approved

#33 by Joerg Arndt at Fri Dec 18 09:53:49 EST 2020
STATUS

proposed

reviewed

#32 by Seiichi Manyama at Fri Dec 18 09:46:39 EST 2020
STATUS

editing

proposed

#31 by Seiichi Manyama at Fri Dec 18 07:53:55 EST 2020
CROSSREFS

Cf. A003732, A003752, A268894.

#30 by Seiichi Manyama at Fri Dec 18 07:52:00 EST 2020
PROG

print([A003689(n) for n in range(1, 21)]) #)]) # _Seiichi Manyama_, Dec 18 2020

#29 by Seiichi Manyama at Fri Dec 18 07:50:52 EST 2020
PROG

(Python)

# Using graphillion

from graphillion import GraphSet

def make_CnXPk(n, k):

grids = []

for i in range(1, k + 1):

for j in range(1, n):

grids.append((i + (j - 1) * k, i + j * k))

grids.append((i + (n - 1) * k, i))

for i in range(1, k * n, k):

for j in range(1, k):

grids.append((i + j - 1, i + j))

return grids

def A(start, goal, n, k):

universe = make_CnXPk(n, k)

GraphSet.set_universe(universe)

paths = GraphSet.paths(start, goal, is_hamilton=True)

return paths.len()

def B(n, k):

m = k * n

s = 0

for i in range(1, m):

for j in range(i + 1, m + 1):

s += A(i, j, n, k)

return s

def A003689(n):

return B(3, n)

print([A003689(n) for n in range(1, 21)]) #

STATUS

approved

editing

#28 by N. J. A. Sloane at Tue Jan 01 06:31:05 EST 2019
LINKS

F. Faase, <a href="http://www.iwriteiam.nl/counting.html">Counting HamiltonHamiltonian cycles in product graphs</a>

Discussion
Tue Jan 01 06:31
OEIS Server: https://oeis.org/edit/global/2784
#27 by Charles R Greathouse IV at Sat Jun 13 00:48:08 EDT 2015
LINKS

<a href="/index/Rec#order_03">Index to sequencesentries withfor linear recurrences with constant coefficients</a>, signature (7,-16,12).

Discussion
Sat Jun 13 00:48
OEIS Server: https://oeis.org/edit/global/2439
#26 by Michel Marcus at Sun Apr 27 01:56:28 EDT 2014
STATUS

reviewed

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 August 29 17:51 EDT 2024. Contains 375518 sequences. (Running on oeis4.)