Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This may be a repeat question, but I was wondering how one would implement the expression/calculation of a representation of a given number h in base balanced n-ary, where n>1 is odd. (For example, for balanced quinary (5-ary), the digits are "+2", "+1", "0", "-1", "-2").

I see that BaseForm can be used to convert h into (non-balanced) n-ary, but how do you make it balanced?

share|improve this question
Wouldn't balanced quinary yield the same digits as base 3, just with a minus sign on each digit for a negative number? That is, wouldn't -33 turn into the digits {-1,0,-2,0}? – phosgene Jul 17 '14 at 0:58
To expand ever so slightly on the point raised by @phosgene, you really need to provide a definition of this representation and indicate how it works. – Daniel Lichtblau Jul 17 '14 at 15:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.