To determine the number of positive integers ( n < w ) that satisfy the equation:
[
\left\lfloor \frac{n}{x \cdot z} \right\rfloor = \frac{\left\lfloor \frac{n}{y} \right\rfloor}{z^2},
]
where ( w, x, y, z ) are positive integers, we can follow a systematic approach.
Step 1: Understanding the Equation
Let's break down the equation:
-
Left Side (LHS): ( \left\lfloor \frac{n}{x \cdot z} \right\rfloor )
This represents the greatest integer less than or equal to ( \frac{n}{x \cdot z} ).
-
Right Side (RHS): ( \frac{\left\lfloor \frac{n}{y} \right\rfloor}{z^2} )
This implies that ( \left\lfloor \frac{n}{y} \right\rfloor ) must be divisible by ( z^2 ), say ( \left\lfloor \frac{n}{y} \right\rfloor = k \cdot z^2 ) for some integer ( k ).
Step 2: Setting Up Conditions
Given ( \left\lfloor \frac{n}{y} \right\rfloor = k \cdot z^2 ), we have:
[
k \cdot z^2 \leq \frac{n}{y} < (k + 1) \cdot z^2
]
[
\Rightarrow k \cdot z^2 \cdot y \leq n < (k + 1) \cdot z^2 \cdot y
]
Simultaneously, from the LHS:
[
k = \left\lfloor \frac{n}{x \cdot z} \right\rfloor \implies k \cdot x \cdot z \leq n < (k + 1) \cdot x \cdot z
]
Step 3: Intersection of Conditions
For a given ( k ), ( n ) must satisfy both:
[
\max(k \cdot z^2 \cdot y, , k \cdot x \cdot z) \leq n < \min\left((k + 1) \cdot z^2 \cdot y, , (k + 1) \cdot x \cdot z\right)
]
The number of integer solutions for each ( k ) is then:
[
\text{Number of } n \text{ for a fixed } k = \min\left((k + 1) \cdot z^2 \cdot y, , (k + 1) \cdot x \cdot z, , w\right) - \max(k \cdot z^2 \cdot y, , k \cdot x \cdot z)
]
Step 4: Summing Over All Possible ( k )
To obtain the total number of valid ( n ), sum the above expression over all ( k ) for which the interval is valid (i.e., the minimum is greater than the maximum and ( n < w )):
[
\text{Total Number of Solutions} = \sum_{k=0}^{K} \left[ \min\left((k + 1) \cdot z^2 \cdot y, , (k + 1) \cdot x \cdot z, , w\right) - \max(k \cdot z^2 \cdot y, , k \cdot x \cdot z) \right],
]
where ( K ) is the largest integer such that ( \max(k \cdot z^2 \cdot y, , k \cdot x \cdot z) < w ).
Step 5: Verification with Small Values
Let's verify this formula with a simple example.
Example: Let ( w = 100 ), ( x = 2 ), ( y = 5 ), ( z = 3 ).
-
For ( k = 0 ):
[
\max(0 \cdot 9 \cdot 5, , 0 \cdot 2 \cdot 3) = 0
]
[
\min((0 + 1) \cdot 9 \cdot 5, , (0 + 1) \cdot 2 \cdot 3, , 100) = \min(45, 6, 100) = 6
]
Number of ( n ): ( 6 - 0 = 6 ).
-
For ( k = 1 ):
[
\max(1 \cdot 9 \cdot 5, , 1 \cdot 2 \cdot 3) = \max(45, 6) = 45
]
[
\min((1 + 1) \cdot 9 \cdot 5, , (1 + 1) \cdot 2 \cdot 3, , 100) = \min(90, 6, 100) = 6
]
Since ( 45 > 6 ), there's no valid ( n ) for ( k = 1 ).
-
For ( k \geq 2 ):
Similarly, ( \max(k \cdot 9 \cdot 5, , k \cdot 2 \cdot 3) ) will exceed ( \min((k + 1) \cdot 9 \cdot 5, , (k + 1) \cdot 2 \cdot 3, , 100) ), resulting in no valid ( n ).
Total Solutions: Only ( k = 0 ) contributes, giving ( 6 ) valid ( n ).
Conclusion
The general formula to find the number of positive integers ( n < w ) that satisfy the given equation is:
[
\boxed{
\text{Number of solutions} = \sum_{k=0}^{\infty} \left[ \min\left( (k z^2 + 1) y, , (k + 1) x z, , w \right) - \max\left( k z^2 y, , k x z \right) \right]
}
]
Note: The sum continues until the term inside the brackets becomes non-positive, meaning no further valid ( k ) exists.
This formula accounts for all overlaps between the intervals defined by the floor functions and ensures that ( n < w ). Verification with small values, as illustrated in the example, confirms its correctness.