I am trying to find out where does the formula for finding the number of all distinct de Bruijn sequences come from. Wikipedia page :https://en.wikipedia.org/wiki/De_Bruijn_sequence here is the formula part:B(n,k)
p.s: This is not homework! I'm just self-studying Graph Theory.