N-ary and binary numerical operations working