Supposing I have a subtraction (multiplication and division) of 3 or more numbers, e.g., 20 - 3 - 2 - 3 - 1, will the subtraction end up being done in pairs, i.e., the - operator is
binaryand therefore only supports 2 operands at a time?Would the multiplication (x) and division (/) operators also be
binary operators, i.e., will they operate only on 2 operands at the same time?
For example:
9 x 3 x 2 x 2 x 4 -> Will the operation be performed with only 2 operands at a time?
100 / 2 / 5 / 2 -> Will the operation be performed with only 2 operands at a time? I am new to algebra.
My question is just to understand what happens "in detail" when we have more than 2 operands in these 3 basic arithmetic operations, I am new to algebra
Formally speaking for instance in the context of Peano Axioms, one begins with the natural numbers. In this case addition is a binary operation $+ : \mathbb{N} \times \mathbb{N} \to \mathbb{N}$ defined as repeated successor ($S : \mathbb{N} \to \mathbb{N}$). In particular one defines the function "add $n$ to an arbitrary $m$" recursively for all "$n$" and then a new function which simply takes in two inputs $n$ and $m$; i.e., effectively a binary operation.
Multiplication is defined recursively as repeated addition and thus is also binary.
Subtraction is usually defined for the integers and bigger number systems in terms of addition between natural numbers and is thus also binary.
Division is usually defined for even bigger numbers systems (although nothing prevents one from dividng in the integers as long as one knows that not all results will be integers themselves) in terms of multiplication and is thus also binary.
Having said this, it is a matter of conventions. I suppose one could come up with different definitions for these operations which are not necessarily binary. However, for most conventional practical purposes there seem to be no obvious advantage in doing so.
PS: Note, as already pointed out in the comments, that thanks to the commutativity and associativity of these operations, their binary nature is not particularly important.