OFFSET
1,3
COMMENTS
a(n) = Sum(A198335(n,k),k=1..n-1).
a(n) is 1/2 of the number of walks of length <= n-1 in the path graph on n vertices. Example: a(3)=5 because in the path a - b - c we have 4 walks of length 1 (ab, bc, ba, cb) and 6 walks of length 2 (aba, abc, bab, bcb, cbc, cba).
See Table 1 on page 101 for details.
REFERENCES
Gerta Rucker and Christoph Rucker, "Walk counts, Labyrinthicity and complexity of acyclic and cyclic graphs and molecules", J. Chem. Inf. Comput. Sci., 40 (2000), 99-106.
EXAMPLE
The total walk count for decane (n=10) is 3250.
MAPLE
with(GraphTheory): T := proc (n, k) local G, A, B: G := PathGraph(n): A := AdjacencyMatrix(G): B := A^k: if k < n then (1/2)*add(add(B[i, j], i = 1 .. n), j = 1 .. n) else 0 end if end proc: 0, seq(add(T(n, k), k = 1 .. n-1), n = 2 .. 33);
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Sep 26 2008
STATUS
approved