Dorothy has a mysterious $?$ button on her calculator. When she types in an integer and hits the $?$ button, if the input is odd, the calculator outputs $1$ less than triple the input. if the input is even but not divisible by $4$, the calculator outputs $1$ more than half the number. if the input is divisible by $4$, the calculator outputs one-fourth of the input. Dorothy typed in an integer, hit the $?$ button, and saw an output of $13$. What are all possible integers Dorothy may have input?
Answers
Answered by
4
Given : mysterious calculator giving different output at Different input
To find : possible inputs for given output
Solution:
input odd then output less than triple the input
input is even but not divisible 4 then output more than half the input
input is Divisible by 4 then out put one fourth of the input
Integer typed = N
Output = 13
input odd number can be 5 , 7 , 9 and so on
input even not divisible by 4 = 22 , 18 , 14 , 10 , 6 , 2
input is divisible by 4 : One possible integer can be 52
Learn More:
10)The input N from the user is 6. The output of the following ...
https://brainly.in/question/11537695
Similar questions