context
.quotkbaseb
(k
, b
)¶Generate a transducer that accepts numbers in base $b$ that are divisible by $k$, and computes the quotient of their division by $k$ in base $b$.
Preconditions:
Postconditions:
See also:
import vcsn
c = vcsn.context('lat<lal_char(0-9), lal_char(0-9)>, b')
c.quotkbaseb(3, 2)
The transducer gives the quotient of the division by $k$.
a = c.quotkbaseb(7, 10)
a.shortest(10)