Question: Office Hours: Monday 4:45-6:15 &Tuesday 4:00-5:30 Course Website: https://d2l.depaul.edu/ Practice Problems 1. Write a program that takes as input the ternary representation of a positive

Office Hours: Monday 4:45-6:15 &Tuesday 4:00-5:30 Course Website: https://d2l.depaul.edu/ Practice Problems 1. Write a program that takes as input the ternary representation of a positive integer n and outputs its decimal representation. 2. Two positive integers are called Amicable (or friendly) if each equals to the sum of the aliquot divisors of the other (aliquot divisors means all the divisors excluding the number itself). For example, 220 and 284 are amicable because the aliquot divisors of 220 are 1, 2, 4, 5, 10 11, 20, 22, 44, 55 and 110, which sum to 284, and the aliquot divisors of 284 are 1, 2, 4, 71 and 142, which sum to 220. Write a program that takes as input two positive integers and checks if their amicable or not. 3. Write a program that takes as input a positive integer n and generates the following shape
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
