In Taiho Code, based on the Chinese system of centralized governance, there were the governmental posts of San hakase (Professor of Mathematics) and Sanshi (a court official in charge of calculation).
中国の律令制を元に作られた大宝律令では、算博士・算師と呼ばれる官職が定められていた。