My class 12 maths textbook says addition is a binary function. But I had this experiment which caused a doubt.
Addition is explained as a binary function because if you add more than two numbers you will have to do it in pairs of two. Now say you have 3 blue balls 7 black balls and 4 green balls. You're asked the total no. of balls. Instead of doing binary addition what if you mix them all up in a bag and randomly count each ball out. It will then no more be binary. How do we resolve this conflict??
Addition can be defined as an $n$-ary operation in a recursive manner
$f_2(x,y) = x+y$
$f_{n+1}(x_1,\ldots,x_{n+1}) = f_n(x_1,\ldots x_n) + x_{n+1}$, for $n\geq 2$.
Then $f_n(x_1,\ldots,x_n)= x_1+\ldots +x_n$ for each $n\geq 2$.