OFFSET
1,4
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Marcia Ascher, Mu torere: an analysis of a Maori game, Math. Mag. 60 (1987), no. 2, 90-100.
R. K. Guy & N. J. A. Sloane, Correspondence, 1985
F. Ruskey, Necklaces, Lyndon words, De Bruijn sequences, etc. [Cached copy, with permission, pdf format only]
FORMULA
a(n) = (1/2)*(binomial(2*n - 3, n - 3) + binomial(n - 2, floor((n - 3)/2))). - Michael Somos
MAPLE
A005656:=n->(1/2)*(binomial(2*n-3, n-3) + binomial(n-2, floor((n-3)/2))): seq(A005656(n), n=1..30); # Wesley Ivan Hurt, Oct 06 2017
MATHEMATICA
Table[(1/2) (Binomial[2 n - 3, n - 3] + Binomial[n - 2, Floor[(n - 3) / 2]]), {n, 40}] (* Vincenzo Librandi, Oct 08 2017 *)
PROG
(PARI) C(n, k)= if(k<0||k>n, 0, n!/k!/(n-k)!);
a(n)= (1/2) *(C(2*n-3, n-3)+C(n-2, (n-3)\2));
(Magma) [(1/2)*(Binomial(2*n-3, n-3) + Binomial(n-2, Floor((n-3)/2))): n in [1..30]]; // Vincenzo Librandi, Oct 08 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Sequence corrected, extended and description corrected by Christian G. Bower
STATUS
approved