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!)
A367681 Number of maximal independent vertex sets in the n-Lucas cube graph. 1

%I #16 Jan 11 2024 00:44:44

%S 1,2,2,4,17,64,731,43388,20087577

%N Number of maximal independent vertex sets in the n-Lucas cube graph.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/LucasCubeGraph.html">Lucas Cube Graph</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/MaximalIndependentVertexSet.html">Maximal Independent Vertex Set</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/MinimalVertexCover.html">Minimal Vertex Cover</a>

%o (Python)

%o from itertools import product, combinations

%o from networkx import empty_graph, find_cliques

%o def A367681(n):

%o v = tuple(int(q,2) for q in (''.join(p) for p in product('01',repeat=n)) if '11' not in q+q[0])

%o G = empty_graph(v)

%o e = tuple((a,b) for a, b in combinations(v,2) if (lambda m: (m&-m)^m if m else 1)(a^b))

%o G.add_edges_from(e)

%o return sum(1 for c in find_cliques(G)) # _Chai Wah Wu_, Jan 11 2024

%K nonn,more

%O 1,2

%A _Eric W. Weisstein_, Nov 26 2023

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 July 30 02:19 EDT 2024. Contains 374734 sequences. (Running on oeis4.)