Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this format, a number is represented as a String consisting of 5 characters: t, n, z, N, and T; these characters represent the values
In this format, a number is represented as a String consisting of 5 characters: t, n, z, N, and T; these characters represent the values -2, -1, 0, 1, and 2.
The number string TnN is equal to 46:
- The rightmost character, N, has the value 1; this is multiplied by 5^0 = 1 to obtain 1.
- The second-rightmost character, n, has the value -1; this is multiplied by 5^1 = 5 to obtain -5.
- The third-rightmost character, T, has the value 2; this is multiplied by 5^2 = 25 to obtain 50.
Then, the contributions of all of these characters is summed, to obtain 2 * (5^2) + -1 * (5^1) + 1 * (5^0) = 50 + -5 + 1 = 46.
Now if I was given a number lets say 17, how do I obtain the representative string from it?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started