Given a list of positive integers \$\mathcal I=I_1,I_2,I_3,...,I_n\$ and a base \$b>1\$ return their "carry-less sum", i.e. represent \$\mathcal I\$ in base \$b\$ and sum digit-by-digit discarding carry.
Worked example:
I = 13, 2, 9; b = 3
In base 3:
111
+ 2
+ 100
-----
= 210
and back to base 10:
desired output: 21
More test cases:
I=[1000, 576, 23, 1, 141], b=12 => 1573
I=[1000, 576, 23, 1, 141], b=2 => 307
I=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], b=4 => 11
I=[1, 2, 3, 5, 8, 13, 21, 34, 55], b=5 => 77
I=[900, 100], b=10 => 0
This is code-golf shortest function or program per language wins.
Standard rules and loopholes apply.
pclmulqdq
. Useful for some Galois Field stuff. \$\endgroup\$