Hi Raj,

you could transform ternary representation {0,1,2} in ternary representation
special {0,1,-1}.

if the ternary representation use only {0,1} then you dont do nothing 1 =
(1)_3 , 4 = (11)_3 , ....
if the ternary representation have this form s2 then you transform for
(s+1)-1
for instance, x = 2 = (2)_3  => (1-1)_3
                       x = 5 = (12)_3 => (2-1) = (1-1-1) = 9-3-1 = 5


Wladimir Araujo Tavares
http://www.si.ufc.br/~wladimir <http://www.si.ufc.br/%7Ewladimir/>
"Fiz uma faculdade! Só não fiz a segunda porque acabaram os tijolos."




On Mon, Aug 30, 2010 at 8:46 PM, Raj N <[email protected]> wrote:

> In ternary number representation, numbers are represented as 0,1,-1.
> (Here -1 is represented as 1 bar.) How is 352/9 represented in ternary
> number representation?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to