login

Revision History for A090860

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

newer changes | Showing entries 11-20 | older changes
Number of ways of 4-coloring a map in which there is a central circle surrounded by an annulus divided into n-1 regions. There are n regions in all.
(history; published version)
#26 by Harvey P. Dale at Sat Jan 25 17:16:31 EST 2020
MATHEMATICA

LinearRecurrence[{1, 2}, {24, 72}, 30] (* Harvey P. Dale, Jan 25 2020 *)

STATUS

approved

editing

#25 by Alois P. Heinz at Tue Jul 23 11:00:59 EDT 2019
DATA

24, 24, 72, 120, 264, 504, 1032, 2040, 4104, 8184, 16392, 32760, 65544, 131064, 262152, 524280, 1048584, 2097144, 4194312, 8388600, 16777224, 33554424, 67108872, 134217720, 268435464, 536870904, 1073741832, 2147483640, 4294967304

OFFSET

3,4,1

COMMENTS

Equivalently, this sequence also represents the sequence of sizes of the Graph of Vertex Colorings ('Coloring Graph') for 4-colorings of an n-wheel graph (related to another sequence on 3-colorings cf. A309314)

PROG

(Python)

import networkx as nx

from tqdm import tqdm

from libcolgraph import *

def wheelgraph(n):

'''

this kind of graph has $n$ vertices, one of them a 'central' vertex. $n-1$ vertices form a ring,

and the central vertex connects to each of the $n$ vertices to complete the spokes of the wheel.

'''

g = BaseGraph()

g.load_from_nx(nx.wheel_graph(n))

return g

def make_sequence(graphgen, *args, k=4, low=3, high=15, **kwargs):

'''

a function that accepts a graph generating function to generate the appropriate basegraph for parameter

n from low to high, and then calls 'build_coloring_graph' on it with parameter k, the number of colors

'''

for n in tqdm(range(low, high)):

g = graphgen(n, *args, **kwargs)

c = g.build_coloring_graph(k)

yield len(c)

[*make_sequence(wheelgraph, k=3)]

KEYWORD

nonn,changed

nonn

EXTENSIONS

Reduced offset from 4 to 3 from Aalok Sathe, Jul 23 2019

Added an additional term by Aalok Sathe, Jul 23 2019

STATUS

editing

approved

#24 by Alois P. Heinz at Tue Jul 23 11:00:39 EDT 2019
STATUS

proposed

editing

#23 by Aalok Sathe at Tue Jul 23 01:46:43 EDT 2019
STATUS

editing

proposed

Discussion
Tue Jul 23
10:59
Alois P. Heinz: edit not supported ...
11:00
Alois P. Heinz: program too complicated for such a simple sequence.  sequence starts at n=4.  Also b-file is given.
#22 by Aalok Sathe at Tue Jul 23 01:39:41 EDT 2019
COMMENTS

Equivalently, this sequence also represents the sequence of sizes of the Graph of Vertex Colorings ('Coloring Graph') for 4-colorings of an n-wheel graph (related to another sequence on 3-colorings cf. A309314)

PROG

(Python)

import networkx as nx

from tqdm import tqdm

from libcolgraph import *

def wheelgraph(n):

'''

this kind of graph has $n$ vertices, one of them a 'central' vertex. $n-1$ vertices form a ring,

and the central vertex connects to each of the $n$ vertices to complete the spokes of the wheel.

'''

g = BaseGraph()

g.load_from_nx(nx.wheel_graph(n))

return g

def make_sequence(graphgen, *args, k=4, low=3, high=15, **kwargs):

'''

a function that accepts a graph generating function to generate the appropriate basegraph for parameter

n from low to high, and then calls 'build_coloring_graph' on it with parameter k, the number of colors

'''

for n in tqdm(range(low, high)):

g = graphgen(n, *args, **kwargs)

c = g.build_coloring_graph(k)

yield len(c)

[*make_sequence(wheelgraph, k=3)]

#21 by Aalok Sathe at Tue Jul 23 01:36:03 EDT 2019
DATA

24, 24, 72, 120, 264, 504, 1032, 2040, 4104, 8184, 16392, 32760, 65544, 131064, 262152, 524280, 1048584, 2097144, 4194312, 8388600, 16777224, 33554424, 67108872, 134217720, 268435464, 536870904, 1073741832, 2147483640, 4294967304

OFFSET

4,3,1

EXTENSIONS

Reduced offset from 4 to 3 from Aalok Sathe, Jul 23 2019

Added an additional term by Aalok Sathe, Jul 23 2019

STATUS

approved

editing

#20 by Jon E. Schoenfield at Thu Nov 22 19:10:32 EST 2018
STATUS

proposed

approved

#19 by Jon E. Schoenfield at Thu Nov 22 19:10:23 EST 2018
STATUS

editing

proposed

#18 by Jon E. Schoenfield at Thu Nov 22 19:10:19 EST 2018
COMMENTS

The number of ways of m-coloring an annulus consisting of n zones joined like a pearl necklace is (m-1)^n + (-1)^n*(m-1), where m >= 3 (cf. A092297 for m=3). Now we must also color the central region.

FORMULA

O.g.f.: -24*x^3 - 12*x + 6 - 8/(1+x) - 2/(2*x-1). - R. J. Mathar, Dec 02 2007

a(n) = 24*A001045(n-2). [From _- _R. J. Mathar_, Aug 30 2008]

a(n) = 2^(n+1) - 8*(-1)^n. - _Vincenzo Librandi, _, Oct 10 2011

PROG

(MAGMA) [2^(n+1)-8*(-1)^n: n in [4..35]]; // _Vincenzo Librandi, _, Oct 10 2011

STATUS

approved

editing

#17 by Charles R Greathouse IV at Sat Jun 13 00:51:17 EDT 2015
LINKS

<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (1,2).

Discussion
Sat Jun 13
00:51
OEIS Server: https://oeis.org/edit/global/2439