In this paper, the composition of Bhargava's cubes is generalized to the ring of integers of a number field of narrow class number one, excluding the case of totally imaginary number fields. The exclusion of the latter case arises from the nonexistence of a bijection between (classes of) binary quadratic forms and an ideal class group.
This problem, together with a related mistake in another paper of the author, is addressed in the appendix.(c) 2023 Elsevier GmbH. All rights reserved.