I am looking at https://en.wikipedia.org/wiki/Negative_base as a reference for converting base 10 to base -3 example. Converting back from -3 base to base 10 does not yield the same result. The example under calculation does not make sense: (146) in base 10 => 20121 in base -3 I think it should be 12102 in base -3 (digits reversed)
2*(-3)^0 + 0*(-3)^1 + 1*(-3)^2 + 2*(-3)^3 + 1*(-3)^4 = 2 - 0 + 9 -54 + 81 = 38 in base 10
Either answer won't convert back to 146 in base 10. What am I missing?