

InterviewSolution
Saved Bookmarks
1. |
What is the condition on q that the decimal expansion of a rational number p/q(q 0) is terminating |
Answer» <html><body><p><strong><a href="https://interviewquestions.tuteehub.com/tag/answer-15557" style="font-weight:bold;" target="_blank" title="Click to know more about ANSWER">ANSWER</a>:</strong></p><p></p><p><strong></strong></p><p><strong>For a rational number, if the denominator of that rational number is of <a href="https://interviewquestions.tuteehub.com/tag/form-996208" style="font-weight:bold;" target="_blank" title="Click to know more about FORM">FORM</a> 2 </strong></p><p><strong>m</strong></p><p><strong> ⋅<a href="https://interviewquestions.tuteehub.com/tag/5-319454" style="font-weight:bold;" target="_blank" title="Click to know more about 5">5</a> </strong></p><p><strong>n</strong></p><p><strong> </strong></p><p><strong></strong></p><p><strong>then it will be terminating.</strong></p><p><strong></strong></p><p><strong>It means that q should be factor of 2 and 5 both or only 2 or only 5.</strong></p><p><strong></strong></p><p><strong>Then it will be terminating.</strong></p><p><strong>If p/q is a rational number what is the condition of q so that the <a href="https://interviewquestions.tuteehub.com/tag/decimal-435752" style="font-weight:bold;" target="_blank" title="Click to know more about DECIMAL">DECIMAL</a> representation of p/q is terminating. So. then it will be terminating. It means that q should be factor of 2 and 5 both or only 2 or only 5</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong></strong></p><p></p></body></html> | |