Question
Please Sir, Solve this problem in assembly language using emu 8086 with explanation. It would be better to give a screenshot of output. Please ,Do
Please Sir, Solve this problem in assembly language using emu 8086 with explanation. It would be better to give a screenshot of output. Please ,Do not use any other languages except assembly. Task: Little Petya likes numbers a lot. He found that number 123 in base 16 consists of two digits: the first is 7 and the second is 11. So the sum of digits of 123 in base 16 is equal to 18.
Now he wonders what is an average value of sum of digits of the number A written in all bases from 2 to A-1.
Note that all computations should be done in base 10. You should find the result as an irreducible fraction, written in base 10.
Input Input contains one integer number A (3A1000).
Output Output should contain required average value in format X/Y, where X is the numerator and Y is the denominator.
Examples input 5 output 7/3 input 3 output 2/1
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