: [Question] Code the given problem using any programming language: Dr. Bumble has set up many stations to conduct his nuclear research. However in each
: [Question] Code the given problem using any programming language:
Dr. Bumble has set up many stations to conduct his nuclear research. However in each of these
stations, for doing mathematical calculations he doesn’t use the conventional decimal number
system. Instead, he uses a separate base Xi for the i-th station. In order to represent numbers in
a particular station, he uses Xi different symbols. Each of these symbols is a number p where
OspsXi.
For portability of his experiments, he needs to convert the numbers back and forth from station
to station. Given a number D in base Xi, your job is to find out the number of symbols (NOT
necessarily distinct) needed to represent that number in base Xj.
Note:
ONLY the number of symbols is wanted. That means you need to find out the length of
representation of D in Xj.
For every base Xi, it is ensured that log (base 2) of Xi is always an integer.Input:
Input:
31
284
23
0721
Output:
6

How it Works

1
It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.


2
Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.


3
After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.


4
Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!