# Terminating decimals

## Homework Statement

Which of the following produce terminating decimals for all integers n?

n/10

n/7

n/12

2. The attempt at a solution

I read on the internet that reduced fraction a/b (meaning that fraction is already reduced to its lowest term) can be expressed as terminating decimal if and only if b (denominator) is of the form 2^n5^m, where m and n are non-negative integers.

That would mean only n/10 and n/12 are the answers. But I don't really understand why only denominators in the form 2^n5^m work?

Last edited:

tnich
Homework Helper

## Homework Statement

Which of the following produce terminating decimals for all integers n?

n/10

n/7

n/12

2. The attempt at a solution

I read on the internet that reduced fraction a/b (meaning that fraction is already reduced to its lowest term) can be expressed as terminating decimal if and only if b (denominator) is of the form 2^n5^m, where m and n are non-negative integers.

That would mean only n/10 and n/12 are the answers. But I don't really understand why only denominators in the form 2^n5^m work?

First of all, can you express 12 as ##2^n5^m## for some non-negative integers ##m## and ##n##?

No

But it is 2^2*3

Mark44
Mentor
But I don't really understand why only denominators in the form 2^n5^m work?

The denominators would be powers of 2 (2, 4, 8, 16, ...), powers of 5 (5, 25, 125, ...), or products of 2 to some power times 5 to some power. All such fractions with any of these denominators have terminating decimal expansions If the denominator is 2, 4, 8, and so on, the fraction will be some multiple of .5, .25, or .125, and so on. If the denominator is 5, 25, 125, and so on, the fraction will be a multiple of .2, .04, .008, and so on. All of these are artifacts of writing fractions as decimal (base-10) fractions, with 10 being divisible by 2 and 5.

But it is 2^2*3
Which is not of the form ##2^m5^n##. The problem did not mention factors of 3 in the denominator.

Natasha1
Ray Vickson
Homework Helper
Dearly Missed

## Homework Statement

Which of the following produce terminating decimals for all integers n?

n/10

n/7

n/12

2. The attempt at a solution

I read on the internet that reduced fraction a/b (meaning that fraction is already reduced to its lowest term) can be expressed as terminating decimal if and only if b (denominator) is of the form 2^n5^m, where m and n are non-negative integers.

That would mean only n/10 and n/12 are the answers. But I don't really understand why only denominators in the form 2^n5^m work?

$$\frac{1}{2^n 5^m}$$
$$\frac{2^k}{10^m} \hspace{2em} \text{or} \hspace{2em} \frac{5^j}{10^n},$$