How can I find the addition of any number made with 0,1,2,3? for example ; Sum array for base 4 = 2003 2223 211 2012 2212 2100 2031 32 2300 2233 2310 120 2232 2012 2022 113