OFFSET
1,1
COMMENTS
a(n) is the number of primitive rhythms of length n (see Romero-García et al.).
LINKS
Gonzalo Romero-García, Lama Tarsissi, Laurent Najman, and Carlos Agon, Counting rhythms using combinatorics on words, hal-05582871, 2026. See Theorem 3 and Table 2 at pages 11-12.
MATHEMATICA
a[n_]:=Sum[MoebiusMu[d]*Fibonacci[2(n/d)+1], {d, Divisors[n]}]; Array[a, 30]
PROG
(PARI) a(n) = sumdiv(n, d, moebius(d)*fibonacci(2*n/d+1)); \\ Michel Marcus, Apr 19 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, Apr 18 2026
STATUS
approved
