I wrote a code that counts the number of these numbers and found out that the answer to the first question is 75000 and the answer to the second question is 62500. I also realised that I need to use an inclusion and exclusion formula to calculate this. But I hadn't used it before, so it was hard for me to write it correctly
2026-03-28 13:14:31.1774703671
How many six-digit numbers are divisible by at least one of the numbers 24, 18? How many of them are divisible by exactly one of them?
67 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in COMBINATORICS
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Hard combinatorial identity: $\sum_{l=0}^p(-1)^l\binom{2l}{l}\binom{k}{p-l}\binom{2k+2l-2p}{k+l-p}^{-1}=4^p\binom{k-1}{p}\binom{2k}{k}^{-1}$
- Algebraic step including finite sum and binomial coefficient
- nth letter of lexicographically ordered substrings
- Count of possible money splits
- Covering vector space over finite field by subspaces
- A certain partition of 28
- Counting argument proof or inductive proof of $F_1 {n \choose1}+...+F_n {n \choose n} = F_{2n}$ where $F_i$ are Fibonacci
Related Questions in COMBINATORIAL-PROOFS
- Proof of (complicated?) summation equality
- Prove combination arguments $c(c(n,2),2) = 3c(n,3)+3c(n,4)$
- A Combinatorial Geometry Problem With A Solution Using Extremal Principle
- What is the least position a club in EPL can finish with 30 wins?
- Find a combinatorial proof for $\binom{n+1}{k} = \binom{n}{k} + \binom{n-1}{k-1} + ... + \binom{n-k}{0}$
- Use combinatorial arguments to prove the following binomial identities
- money changing problem
- $\forall n\in\mathbb N,x>-1,(1+x)^n\ge1+nx$ Using 2nd Derivative
- Combinatorial proof of $\sum\limits_{i=0}^{r} ({m \choose i}) = {{m + r}\choose m}$
- Intersection of $n$ circles and $m$ lines
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Right. So the first part is asking you how many six-digit multiples of either $24$ or $18$ (or both) there are. Let's begin by finding the number of six-digit numbers divisible by $24$. It so happens that the smallest such number is $100008$, which is equal to $4167\times24$. The largest such number is $999984$, and it is equal to $41666\times24$. There are therefore $41666-(4167-1)=37500$ six-digit numbers divisible by $24$.
Now for divisibility by $18$: $100008$ is the smallest such number, equal to $5556\times18$. The largest such number is $999990=55555\times18$. There are therefore $55555-(5556-1)=50000$ six-digit numbers divisible by $18$.
Now if we call the first set of numbers $A$ and the second set $B$, with $|A|=37500$ and $|B|=50000$, the first part of the question is asking you to find $|A\cup B|$. You might think this is equal to $|A|+|B|$, but this would be double-counting the numbers divisible by $24$ and $18$. This is where the inclusion-exclusion principle comes into play: it states that $|A\cup B|=|A|+|B|-|A\cap B|$ — in other words, the sum of the number of numbers divisible by $24$ and $18$, minus the number of numbers divisible by both. So let's work that last quantity out.
The least common multiple of $24$ and $18$ is $72$; in other words, the six-digit multiples of $72$ are precisely those which are multiples of $24$ and $18$ at the same time. The smallest such six-digit number is $100008=1389\times72$. The largest such number is $999936=13888\times72$. There are therefore $13888-(1389-1)=12500$ six-digit numbers divisible by $72$.
We now have everything we need. We want $|A\cup B|$, and by the inclusion-exclusion principle this is equal to $|A|+|B|-|A\cap B|$. Substituting the proper values, we get $|A\cup B|=37500+50000-12500=75000$, which matches the given answer.
Now for the second part of the question. This is basically asking for the same quantity as the first part, except that the multiples of $72$ aren't included at all, i.e. we want the number of six-digit numbers divisible by $24$ or $18$ but not both; it is a case of the "exclusive or". In short, it is asking for $|A\cup B|-|A\cap B|$. Again, substituting the proper values, we get that it is equal to $75000-12500=62500$, which again matches the correct answer and so we are done.