Given an integer n , find the smallest integer y such that n*2^y is divisible by 10
Answers
Answered by
0
Answer:
answers is 5 cause we want smallest integer
Answered by
0
Given:
An integer n and integer y.
To Find:
The smallest integer y such that (n*2)^y is divisible by 10
Solution:
Here n* is divisible by 10 .
- Factors of 10 = 5x2
- Therefore has factors 5 and 2 as well.
- Hence it is possible only if n = 5 or multiple of 5.
- if = 5 , = 2 for 5 x 2 = 10.
- y =1
- if y = 0,
- (2n)° = 1 not divisible by 10.
Therefore smallest integer value of y = 1.
Similar questions