A mathematical book written by Arab mathematicians in the 10 century is called Al-Ugri Desi Arithmetic, which was published in 1978. Euclid here does not refer to Euclid who wrote down primitive geometry in ancient Greece. In the Middle Ages, Arabs regarded Euclid as a saint, so some mathematical works were dubbed Euclid. Among them, multiplication, three-digit multiplication and column multiplication first multiply the multiplicand by the first digit of the multiplier, then multiply the multiplicand by the second digit of the multiplier, and finally get the product. Its steps are consistent with the ancient China calculation multiplication.
In the calculation, one step represents five and the next step represents one, so I even think that the last bead represents five and the next bead represents one. From preparation to abacus, we can find the historical context. It used to be said that mathematics in Ming Dynasty was backward, but abacus was widely used in Ming Dynasty and spread to Japan, Korea and Southeast Asian countries.