Take the 2-minute tour ×
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
1  
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 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 at 15:00

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.