OFFSET
1,5
COMMENTS
Here primitive means the word is not two or more repetitions of a smaller word.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{d|n} mu(d) * Fibonacci(n/d-1).
EXAMPLE
For n=5, the a(6) = 3 words are: 100000, 100010, 101000.
Notice 100100 is not included since it is repetitions of the smaller word 100 (from n=3).
PROG
(PARI) a(n) = sumdiv(n, d, moebius(d)*fibonacci(n/d-1)) \\ Andrew Howroyd, Mar 10 2025
(Python)
from sympy import mobius, fibonacci, divisors
def A381936(n): return sum(mobius(n//d)*fibonacci(d-1) for d in divisors(n, generator=True)) # Chai Wah Wu, Mar 18 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Aidan Diekmann, Mar 10 2025
STATUS
approved
