cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A360000 Number of directed cycles in the 2-Fibonacci digraph of order n.

Original entry on oeis.org

2, 3, 4, 8, 16, 61, 437, 17766, 5885824, 111327315589
Offset: 1

Views

Author

Pontus von Brömssen, Jan 21 2023

Keywords

Comments

The 2-Fibonacci digraph of order n, F(n), is defined by Dalfó and Fiol (2019). It can be defined as an iterated line digraph, where F(1) has two nodes, one directed edge in each direction between them, and a loop at one of the nodes, and for n >= 2 F(n) is the line digraph of F(n-1). (Compare the related de Bruijn graph, where the graph of order one has loops at both nodes.) Its nodes can be identified with binary sequences of length n with no adjacent 1's (or fibbinary numbers below 2^n if the nodes are labeled by integers instead of binary sequences), with a directed edge from (x_0, ..., x_{n-1}) to (x_1, ..., x_n) if there are no consecutive 1's in (x_0, ..., x_n). For n >= 2, it is also the subgraph of the de Bruijn graph (of the same order) induced by the nodes with no adjacent 1's. It has A000045(n+2) nodes and A000045(n+3) edges.
Equivalently, a(n) is the number of cycles with no adjacent 1's that can be produced by a general n-stage feedback shift register.

Examples

			For n = 4 there are a(4) = 8 cycles:
  0000 -> 0000;
  0101 -> 1010 -> 0101;
  0010 -> 0100 -> 1001 -> 0010;
  0001 -> 0010 -> 0100 -> 1000 -> 0001;
  0000 -> 0001 -> 0010 -> 0100 -> 1000 -> 0000;
  0010 -> 0101 -> 1010 -> 0100 -> 1001 -> 0010;
  0001 -> 0010 -> 0101 -> 1010 -> 0100 -> 1000 -> 0001;
  0000 -> 0001 -> 0010 -> 0101 -> 1010 -> 0100 -> 1000 -> 0000.
		

Crossrefs

Programs

  • Python
    import networkx as nx
    def F(n): return nx.DiGraph(((0,0),(0,1),(1,0))) if n == 1 else nx.line_graph(F(n-1))
    def A360000(n): return sum(1 for c in nx.simple_cycles(F(n)))

Extensions

a(10) from Bert Dobbelaere, Jan 24 2023

A359998 Number of longest directed cycles in the 2-Fibonacci digraph of order n.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 28, 216, 65200, 167084480
Offset: 1

Views

Author

Pontus von Brömssen, Jan 21 2023

Keywords

Comments

See Dalfó and Fiol (2019) or A360000 for the definition of the 2-Fibonacci digraph.
The longest cycles appear to have length A080023(n).

Crossrefs

Extensions

a(10) from Bert Dobbelaere, Jan 24 2023

A359999 Most common cycle length in the 2-Fibonacci digraph of order n. In case of ties, choose the largest length.

Original entry on oeis.org

2, 3, 4, 5, 11, 11, 24, 32, 59, 92
Offset: 1

Views

Author

Pontus von Brömssen, Jan 21 2023

Keywords

Comments

See Dalfó and Fiol (2019) or A360000 for the definition of the 2-Fibonacci graph.

Crossrefs

Extensions

a(10) from Bert Dobbelaere, Jan 24 2023
Showing 1-3 of 3 results.