The ring of finite algebraic numbers and its application to the law of decomposition of primes