How many positive integers are not divisible by 2, 3, or 5 up to 120?

  • MHB
  • Thread starter evinda
  • Start date
  • Tags
    Integers
In summary: Wait! (Wait)I was counting the wrong numbers.Anyway, Soroban gave a proper method, which also matches chisigma's suggestion. (Emo)
  • #1
evinda
Gold Member
MHB
3,836
0
Hi! (Smile)

I am looking at this exercise:

How many positive integers,that are not greater that $120$, do not get divided by $2,3 \text{ and } 5$?

I thought to write $120$ as a product of prime numbers ($120=2^3 \cdot 3 \cdot 5^2$),and then find the number of multiples of $2,3,5$ and subtract their sum from $120$. (Blush)

Is it right? And...how can I find the number of multiples of $2,3 \text{ and } 5$ ? :confused:
 
Physics news on Phys.org
  • #2
evinda said:
Hi! (Smile)

I am looking at this exercise:

How many positive integers,that are not greater that $120$, do not get divided by $2,3 \text{ and } 5$?

I thought to write $120$ as a product of prime numbers ($120=2^3 \cdot 3 \cdot 5^2$),and then find the number of multiples of $2,3,5$ and subtract their sum from $120$. (Blush)

Is it right? And...how can I find the number of multiples of $2,3 \text{ and } 5$ ? :confused:

In this case the Sieve of Heratosthenes is a relatively comfortable method...

Kind regards

$\chi$ $\sigma$
 
  • #3
chisigma said:
In this case the Sieve of Heratosthenes is a relatively comfortable method...

Kind regards

$\chi$ $\sigma$

But...is my idea right or could we also do it in an other way? :confused:
 
  • #4
evinda said:
Hi! (Smile)

I am looking at this exercise:

How many positive integers,that are not greater that $120$, do not get divided by $2,3 \text{ and } 5$?

I thought to write $120$ as a product of prime numbers ($120=2^3 \cdot 3 \cdot 5^2$),and then find the number of multiples of $2,3,5$ and subtract their sum from $120$. (Blush)

Is it right?

Yep! That is right! (Sun)

And...how can I find the number of multiples of $2,3 \text{ and } 5$ ? :confused:

Well, in these number the factor 2 occurs 0 up to 3 times, the factor 3 occurs 0 to 1 times, etcetera... (Thinking)
 
  • #5
I like Serena said:
Yep! That is right! (Sun)
Well, in these number the factor 2 occurs 0 up to 3 times, the factor 3 occurs 0 to 1 times, etcetera... (Thinking)

So,there are $4$ multiples of $2$, $2$ of $3$ and $3$ of $5$? (Thinking)
 
  • #6
Hello, evinda!

How many integers from 1 to 120 are not divisible by 2, 3 or 5?
Let's find the number of integers which are divisible by 2, 3, or 5.

Every second integer is divisible by 2.
..
[tex]2,4,6,8,10,12,14,16,18\text{ . . .}[/tex]
Hence: .[tex]n(2) \:=\:\tfrac{120}{2} \:=\: 60[/tex] multiples of 2.

Every third integer is divisible by 3.
. . [tex]3,6,9,12,15,18,\text{ . . .}[/tex]
Hence: .[tex]n(3) \:=\:\tfrac{120}{3} \:=\:40[/tex] multiples of 3.

But both these lists contain 6, 12, 18, . . .
. . The mutiples of 6 are counted twice.
Hence: .[tex]n(2,3) \:=\:\tfrac{120}{6} \:=\:20[/tex] multiples of 6.Every fifth integer is divisible by 5.
. . [tex]5, 10, 15, 20, 25, 30,\text{ . . .}[/tex]
Hence: .[tex]n(5) \:=\:\tfrac{120}{5} \:=\:24[/tex] multiples of 5.

But we counted the multiples of 10, and 15 twice.
There are: .[tex]\tfrac{120}{10} = 12[/tex] multiples of 10, [tex]n(2,5) = 12[/tex]
. . . . and: .[tex]\tfrac{120}{15} = 8[/tex] multiples of 15, [tex]n(3,5) = 8[/tex]

Also, there are: .[tex]\tfrac{120}{30} = 4[/tex] multiples of 2, 3 and 5.

[tex]\begin{array}{cccc}\text{Formula:}\\
n(A \cup B \cup C) &=& n(A) + n(B) + n(C) \\ && -n(A\cap B) -n(B\cap C) - n(A\cap C) \\ && + n(A\cap B\cap C) \end{array}[/tex]

[tex]\begin{array}{ccccc}n(2 \cup 3 \cup 5) &=& n(2) + n(3) + n(5) \\ && -n(2\cap3) - n(3\cap5) - n(2\cap 5) \\ && + n(2\cap3\cap5)\end{array}[/tex]

[tex]n(2\cup3\cup5)\:=\:60 + 40 + 24 - 20 - 8 - 12 + 4 \:=\:88[/tex]There are: .[tex]120-88 \,=\,32[/tex] numbers not divisible by 2, 3 or 5.
 
  • #7
evinda said:
So,there are $4$ multiples of $2$, $2$ of $3$ and $3$ of $5$? (Thinking)

Wait! (Wait)
I was counting the wrong numbers.

Anyway, Soroban gave a proper method, which also matches chisigma's suggestion. (Emo)
 

FAQ: How many positive integers are not divisible by 2, 3, or 5 up to 120?

How many integers exist?

The answer to this question is infinite. Integers are whole numbers that can be positive, negative, or zero. Since there is no limit to how high or low an integer can be, there is an infinite amount of integers.

Can you list all the integers?

No, it is not possible to list all the integers. As mentioned before, there is an infinite amount of integers. Even if we were to list them forever, we would never reach the end.

Are there more positive or negative integers?

There is an equal amount of positive and negative integers. For every positive integer, there is a corresponding negative integer. However, the number of positive and negative integers is still infinite.

What is the smallest and largest integer?

The smallest integer is -infinity, and the largest integer is +infinity. Since there is no limit to how high or low an integer can be, there is no specific smallest or largest integer.

Are fractions or decimals considered integers?

No, fractions and decimals are not considered integers. Integers are whole numbers, and fractions and decimals represent parts of a whole. However, fractions and decimals can be converted into integers by rounding up or down.

Similar threads

Back
Top