Kernel: Python 3
context
.divkbaseb
(k
, b
)
Generates an automaton that recognises the writing in base of the numbers divisible by the integer .
Preconditions:
the labelset has at least generators
Postconditions:
the automaton has states
Result = quotkbaseb(k, b).project(0)
See also:
Examples
In [1]:
In [2]:
If and are coprime, then the result is known to be minimal.
In [3]:
In [4]: