If there were an efficient algorithm for this, NI would have already implemented it and you'd be able to put the Quotient/Remainder function in a single-cycle timed loop 😉
Do you need only the quotient and not the remainder? What is the range and data type of the inputs? With a limited range of inputs, there might be an approach using a lookup table that would work for you.