Reduction of both coefficients in modular arithmetic gives
More explicitly,
The first expression is divisible by exactly when the last parenthesis is. By the definition of a integer congruence, the two congruences are equivalent.
The Euclidean algorithm gives
so . Since , the criterion for a linear congruence guarantees a solution. One can also exhibit it directly: , or in the original coefficients,
Thus is a solution, with an explicit Bézout coefficient certificate.
Divide the divisibility relation by to obtain . Since , multiplication by the modular multiplicative inverse gives . Therefore all integer solutions are , .
Modulo , the choices give
They are distinct residue classes: equality of two such classes would imply , hence . Every integer is congruent to one of those thirteen choices, so the list is exhaustive.
Let , and write , with positive integers . If an integer divided both and , then would divide both and , contradicting the maximality of their greatest common divisor . Thus . Equivalently, Bézout's identity for can be divided by to express as an integer combination of .
Let , , and . The preceding part gives . The integer congruence on the left is equivalent to
By Euclid's lemma, coprimality of and makes this equivalent to . The reverse implication is also immediate by multiplying a divisibility relation by . Therefore
This is cancellation of a common factor in a congruence. The printed equality sign in the right-hand expression is interpreted as equality of residue classes, hence the displayed integer congruence. Ordinary equality of the integers would be false: the following example has .
Take . These are four distinct positive integers and . Their products are and , whose difference is , so . Here the correct reduced modulus is , and indeed . The example illustrates why cancelling a noninvertible factor may change the modulus in modular arithmetic.
For the base case , the product is . Assume the identity holds for some . Multiplying by the next factor gives
This is the desired expression with replaced by , so mathematical induction proves the identity for every . The factorization also explains the cancellation as a telescoping product.
For , both sides are . Assuming the formula through , adding the next term gives
The last expression is the required formula at , completing mathematical induction. The partial fraction decomposition
provides a second explanation: this is a telescoping sum.
Suppose, for a proof by contradiction, that an integer is both an even number and an odd number. Then and for some integers . Subtracting yields . The left side is an integer, while is not. This contradiction proves that no integer is both even and odd.
The contrapositive is that an integer perfect square has residue or modulo . Let for an integer . If is an even number, then . If is an odd number, then . These exhaust the possible parities of an integer. Thus a residue of or excludes being a perfect square, as required by the contrapositive.
Take and . Their first coordinates are equal, so both and hold, although . Thus is not an antisymmetric relation, and hence it is not a partial order. The failure arises because its comparisons ignore the second coordinate entirely.
Check each partial order axiom. For every , and , so is a reflexive relation. If both and , the first coordinates satisfy and the second coordinates satisfy . Therefore and , which proves is an antisymmetric relation.
Finally, if and , then and . Hence , making a transitive relation. All three axioms hold, so is a partial order. It is a product order, with the usual order on the first coordinate and the reversed order on the second.
A subset is determined uniquely by deciding, for each of the elements, whether to include it. Each decision has two possibilities. By the rule of product, there are decision strings. The correspondence between such binary strings and subsets is a bijection, so . The all-zero string corresponds to the empty subset.
For , choose an ordered list of distinct elements: there are such lists. Every -element subset occurs in exactly orders, the number of permutations of its elements. Thus the count is the binomial coefficient
For fixed and , every numerator factor lies between and . Consequently
The constants depend on the fixed , not on . These inequalities prove in big theta notation. More precisely, dividing the product by gives the fixed-cardinality binomial coefficient asymptotic . For , there is exactly one empty subset, and the assertion is .
For , choose the first elements of . Every sum of a subset has a unique binary representation, so distinct subsets cannot have the same sum. To see this directly, take the largest power of two belonging to exactly one of two proposed subsets. It exceeds the sum of all smaller powers, and therefore cannot be cancelled by their difference. Thus these chosen sets are dissociated sets and do not have the two-sum property.
If cardinality zero is included, the empty set has only one subset, so it cannot supply two distinct ones either. There is a counterexample at every cardinality from through .
Fix any seven-element subset . Its power set supplies pigeons. Map each subset to its integer sum. Since the elements are positive, all such sums lie between and . The latter is at most the sum of the seven largest available elements,
There are therefore at most possible sums, fewer than the subsets. The pigeonhole principle forces two distinct subsets to have the same sum. Every seven-element subset has the two-sum property. This is the subset-sum pigeonhole bound. The weaker estimate would also suffice, since .
The number is
A direct search over every -element subset must inspect candidates. Testing one candidate by generating its subset sums creates values; storing previously seen sums detects a collision. Generating them incrementally needs arithmetic operations, or for the straightforward independent calculation of each sum. Thus the simple overall search has cost on the scale of , apart from integer-arithmetic and data-structure costs.
The important time complexity distinction is that fixed gives polynomial growth in , of degree , but this can still become impractically large. If increases with , both the candidate count and the internal power set can grow exponentially. For example, near the binomial coefficient is already exponentially large. An exhaustive implementation can therefore encounter a combinatorial explosion; the fixed- estimate must not be described as exponential in .
Use the standard spacing convention for machine epsilon: the next representable floating-point number above is . In a normalized binary representation this corresponds to significant binary digits, including the leading digit. The spacing throughout is therefore .
With rounding to nearest, the associated unit roundoff is half that spacing, ; for a normal result the relative round-off error is bounded by . Some texts instead call machine epsilon. Here denotes the spacing scale, and the iteration counts below use that convention. It describes representation precision, not a guarantee that an arbitrarily evaluated function has a relative error this small.
The second-order remainder form of Taylor's theorem gives, for a point between and ,
For , the given curvature bounds imply
In particular and . Differentiability implies continuity, so the intermediate value theorem gives a root in .
The mean value theorem applied to gives for . Thus is strictly increasing there, and it cannot have two roots. There is exactly one root in .
At a root of size between and , the spacing of floating-point numbers is . With ordinary stable function evaluations, a sensible generic absolute position tolerance has scale ; sub-spacing progress cannot generally be represented. This is a resolution estimate, not a lower bound excluding an accidentally exactly representable root.
Define one bisection method step as replacing the current bracket by the half retaining the sign change. Starting from , the width after such updates is . Therefore
The midpoint of a bracket has an exact-arithmetic error bound of half its width. If tolerance is defined instead as that midpoint error bound, updates suffice to make it at most . Stating the convention avoids an off-by-one difference; once the endpoints are adjacent floating-point numbers, their exact midpoint need not itself be representable.
Apply the mean value theorem, the first-order case of Taylor's theorem, to between and . It yields
Also , so the initial point is to the right of the root . For an increasing strictly convex function, its tangent at a point to the right of a root meets the axis between that root and the point. Hence the exact Newton root-finding iteration remains in and decreases towards .
On every relevant interval, and , so the stated quadratic convergence bound gives, with ,
Iterating the bound gives
Thus four Newton corrections suffice to reduce the exact-iteration error bound below the floating-point spacing scale. The quadratic convergence doubles the approximate number of correct digits at each late step. Beyond this point further corrections cannot reliably improve a generic floating-point answer. This is a bound on useful accuracy under the usual stable-evaluation model, not a claim that the data specify the exact iteration at which every implementation must stagnate.
For negative , the mean value theorem gives . In particular,
Since is continuous and strictly increasing, it vanishes at exactly one point . The positive second derivative makes a strictly convex function on the entire real line. Its derivative changes from negative to positive at , so is the unique global minimum. One may also use to verify coercivity.
In the endpoint-bracketing form of golden-section search, begin with , a width-one interval known to contain this unique minimum, and place the two standard interior probes. The attainable position accuracy is different from that for a simple root. Around , Taylor's theorem gives
Here the minimum value is nonzero and of order one: the lower quadratic bound gives , while . Ordinary relative round-off error in these function values therefore hides changes of order , once has that size. The function-value resolution near a nondegenerate minimum is consequently of order
Each golden-section search contraction multiplies the bracket width by . Using as the nominal target width gives
Unknown evaluation-error constants can change the actual stopping point; is the standard scale-based count. Requiring position accuracy from these function-value comparisons would disregard the quadratic flatness of the minimum. The same precision effect is documented for one-dimensional numerical minimization.[ref]
Separate inactive and active optimization constraints. At an interior feasible point with , a differentiable local minimum must satisfy . Retain only solutions lying in the interior.
On the boundary , if , apply the Lagrange multiplier condition. Using the optimization Lagrangian , the Karush-Kuhn-Tucker conditions are
The sign follows from feasible motion into : the directional derivative along at a minimum cannot be negative. Thus a boundary candidate has and a nonnegative Lagrange multiplier. Boundary points with must be examined separately, because the usual constraint qualification fails there.
Solve the interior and boundary systems, check membership in the feasible set, and establish which candidates are minima using second-order tests or a direct global comparison. The Karush-Kuhn-Tucker conditions alone are not sufficient for general nonconvex functions or feasible sets. On an unbounded feasible set, also check whether an infimum is attained and whether escaping sequences can improve the objective.
Complete the square to write the objective as
Let and , so while feasibility requires . The reverse triangle inequality gives
The objective is therefore at least zero. Equality is attained by , which lies on the boundary. Equality requires the vectors to have the same direction and , so this minimizer is unique. Hence
It also satisfies the Karush-Kuhn-Tucker conditions with . The direct distance argument proves global optimality even though the exterior of a disk is not a convex set; this is nearest-point minimization outside a Euclidean ball.
The objective is continuous on the compact disk, so a global maximum exists. Its gradient is , which is never zero, so a maximum cannot lie in the interior. It must have .
Both coordinates of a maximizing point are positive. Reflecting a negative coordinate to its positive counterpart strictly increases the objective without changing the constraint; at an endpoint with one coordinate zero, a small move along the circle into the positive quadrant also increases the objective to first order. Thus it suffices to consider .
The boundary Lagrange multiplier equations are and . Eliminate to obtain the two-dimensional nonlinear system of equations
Keeping this quadrant restriction excludes the boundary minimum that an unconstrained elimination could also produce. Under the stated uniqueness assumption for the admissible solution, the global maximum must be that solution. Approximate it with multivariable Newton iteration, solving and setting , with a suitable safeguard if needed. For example its explicit Jacobian matrix is
No numerical solution of the system is required.
Use the optimization Lagrangian
Symmetry gives the gradient equations and . The positive-definite matrices are invertible, so define
The affine constraint gives , hence
For a global certificate, write any other feasible point as . Feasibility implies . Expansion cancels the cross terms and leaves
By positive definiteness this is positive unless . Thus the solution is the unique global minimum, not merely a stationary point. This is a two-block instance of positive quadratic minimization under one affine constraint.
Write . The squared Euclidean norm is , whose gradient is . The chain rule for the exponential function therefore gives the column gradient
The row derivative, if that convention is used for , is its transpose.
Differentiate the column gradient . The Jacobian matrix product rule gives one term from differentiating the scalar exponential function and one from differentiating , whose Jacobian matrix is the identity matrix:
In particular, for any nonzero vector ,
Thus the Hessian matrix is positive definite everywhere. This calculation proves strict convexity and supplies the derivatives needed for sums of these terms.
A practical choice is a BFGS method, using exact gradients and a line search. At dimension , its -by- inverse-Hessian matrix approximation is small, whereas forming a million rank-one contributions to the exact Hessian matrix is expensive. If , the explicit derivatives are
The positive-definite Hessian matrix and coercivity show that the objective has one global minimizer.
For numerical stability one can minimize instead, which has exactly the same minimizer. Put , , and . Then the logarithmic gradient of an exponential squared-distance sum gives
Evaluate the weights as to avoid floating-point overflow. A Quasi-Newton method step is
where is the positive-definite inverse-Hessian matrix approximation updated by BFGS, and is chosen by a line search, for example one satisfying the Wolfe conditions. Under the standard smoothness and nondegeneracy assumptions at this strongly convex minimizer, full-memory BFGS has local superlinear convergence. An exact Newton's method in optimization would have local quadratic convergence, but pays for those much more expensive exact second derivatives.[ref]
Here a dense -by- matrix has entries, about GB even with eight-byte storage per entry. Use limited-memory BFGS on the negative of the objective, or equivalently its positive-definite approximate-metric form of gradient ascent. It stores only a fixed small number of vector pairs, costing memory rather than .
Let and put . Direct use of the chain rule gives
If denotes the positive-definite inverse-Hessian matrix approximation for , the iteration is
with a line search increasing and the usual safeguarded limited-memory updates. No exact Hessian matrix is required. With fixed memory and the usual bounded-metric and line search hypotheses, expect local linear convergence near a nondegenerate strict maximum; fixed-memory limited-memory BFGS does not generally inherit the superlinear theorem for full-memory BFGS.
Unlike the preceding objective, is not generally a concave function. Thus this is a method for finding a local maximum; comparison of different converged candidates or a global search is needed to certify a global maximum for arbitrary centres. The symbolic problem supplies no assumption that would justify an unconditional global-convergence claim.[ref]
Let be the weighted average on the right, and define and as in part (i). Their explicit gradient identity is
Therefore the displayed equation is exactly the stationary point equation for the strongly convex . It has one solution, which is the unique minimizer from part (i). Reuse the BFGS iteration, with
The gradient is explicit, the weights can again be scaled by their largest exponent, and the usual full-memory BFGS assumptions give local superlinear convergence.
Simply setting is not automatically a convergent fixed-point iteration. Differentiating the normalized weights gives
whose operator norm need not be below . For example, in one dimension with centres , and : the desired fixed point is locally repelling for that naive iteration. If exact second derivatives are affordable, multivariable Newton iteration on is another valid choice, with Jacobian matrix as given above and local quadratic convergence.
A general-purpose high-dimensional choice is Monte Carlo integration. Draw independent vectors uniformly from the unit cube and evaluate . The cube has volume , so its integral is the expected value of . The iterative estimator is
The integrand is continuous on a compact set, hence bounded with finite variance. The strong law of large numbers gives almost sure convergence, and the square root of the mean squared error is exactly , where . Thus the standard stochastic accuracy rate is ; the dimension affects the variance and evaluation cost, not this exponent.
There is also an important structure-specific improvement here: is a separable integrand. The Fubini theorem reduces the requested value exactly to
One can therefore replace high-dimensional sampling by one-dimensional composite Simpson's rule calculations. For each factor use even , , and
then iterate and form the sum of the products. These smooth factors give deterministic discretization error for fixed centres. Thus Monte Carlo integration is a valid generic answer, while exploiting separability is the more efficient specialized alternative; a large dimension alone does not force a tensor-product grid.
Let be the event that candidate succeeds. The countable additivity axiom adds probabilities only for mutually disjoint events. Successes of different candidates are not mutually exclusive, so replacing the probability of their union by misuses that axiom. Without disjointness one obtains only the union bound, not certainty. The same sum is the expected value of the number of successes, which also need not imply at least one.
If the ten outcomes are mutually independent events, with each success probability , all fail with probability . Hence
The independence assumption is essential. The marginal probabilities alone allow any union probability from up to ; perfectly overlapping success events give the lower endpoint and disjoint successes give the upper endpoint.
The independent random variables have a product joint probability mass function. For integers ,
It is zero for all other pairs. The factors are the respective Poisson distribution masses, with the product justified by independence.
By the definition of a probability generating function and the power series for the exponential function,
The series is absolutely convergent for every finite real ; in particular the expression is finite for all , as needed for the later tail estimate.
For , independence gives
The initial factor accounts for the shift by one; substituting accounts for doubling the random variable. Its support consists of positive odd integers.
Conditioning on has positive probability exactly when for an integer . This is the same event as . The addition of independent Poisson random variables gives a Poisson distribution with parameter for the sum. Therefore, for ,
Thus . The case is a constant zero random variable. For even, nonpositive, or noninteger , the conditioning event has zero probability, so an event-conditional probability distribution is not specified by the quotient formula. This is a two-component case of Poisson-multinomial conditioning.
Because , the function is increasing and nonnegative. Thus . Applying Markov's inequality to the nonnegative random variable , whose expected value is finite by assumption, yields
Under the usual probability generating function convention takes nonnegative integer values. The argument itself works for any real random variable if is understood as the finite expected value .
Insert the Poisson distribution probability generating function into the preceding bound:
For fixed , differentiate the exponent with respect to . Its derivative is , and its second derivative is , so its unique minimum occurs at . At that value,
Consequently
This Chernoff bound remains valid for noninteger positive thresholds ; the event is then the same as exceeding or equalling its integer ceiling.
Let . In a uniformly shuffled deck, each labelled card is equally likely to occupy the first position, and exactly cards are red. Therefore . Equivalently, the red positions are a uniformly chosen -element subset of the positions.
Every position in the random permutation has the same marginal colour probability, so . One can verify this with the law of total probability, conditioning on the first card:
Here because both colour counts are positive.
Articles were limited to the first 100 out of 127 total.

Articles by others on the same topic (0)

There are currently no matching articles.