SearcharxivSearch

arXiv · 2210.07961

Computing efficiently the weighted greatest common divisor

Abstract

In this paper we included some basic properties for weighted greatest common divisors, and discuss how to speed up computing the weighted greatest common divisor. By ordering the 'weights' we are able to significantly shorten the operations to computing wgcd. In the absence of an efficient algorithm for computing wgcd by ordering the weights, and using $\gcd$, we significantly reduce the numbers for which we want to compute wgcd. As a final result in this paper we prove that: If $\mathbf{x} = (x_{0},\dots ,x_{n})\in \mathbb{Z}^{n+1}$, with weights $\mathfrak{w}=(q_{0},\dots ,q_{n})$ and $q_{0}\leq \cdots \leq q_{n}$, then ${\rm wgcd}_w(\mathbf{x}) = {\rm wgcd}_w(y_0,y_1,\dots,y_n)$, where $y_i = \gcd(x_i,\dots,x_n)$, and $y_0\leq y_1 \leq\dots \leq y_n$.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Orgest Zaka. 2023-01-23. Computing efficiently the weighted greatest common divisor. https://arxiv.org/abs/2210.07961

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Average Chord Lengths in a Triangle

Let $P$ be a point inside a triangle $T$. We consider the average length of the chords of $T$ through $P$, where the direction of the chord is chosen uniformly. An elementary formula is obtained in terms of the distances from $P$ to the sides and vertices of the triangle. Several classical triangle centers give especially simple specializations. For example, if $I$ is the incenter, then \[ M_T(I)=\frac{2r}{\pi} \log\left(\cot\frac A4\cot\frac B4\cot\frac C4\right). \] Our main result is the sharp inequality \[ M_T(P)\le \frac{p}{\pi\sqrt3}\log(2+\sqrt3), \] valid simultaneously for every triangle of perimeter $p$ and every interior point $P$. Thus, among all such pairs $(T,P)$, the largest possible average chord length occurs only when $T$ is equilateral and $P$ is its center. The proof is an elementary symmetrization argument. We close with brief remarks relating the problem to the radial center of a convex body, the electrostatic potential center of a triangle, and dual quermassintegrals.

math.GM

A Proof of Liu's Conjecture on the Fundamental Triangle Inequality

Let $a,b,c$ be the side lengths of a triangle, and let $R$ and $r$ denote its circumradius and inradius, respectively. We prove a conjecture of Liu stating that \[\sum_{\mathrm{cyc}} \left(\frac{a(b+c-a)}{bc}\right)^k \geq 2+\left(\frac{2r}{R}\right)^k,~~k>1, \] with the reverse inequality for $0<k<1$. The proof reduces the problem to three positive variables with fixed sum and product. We also determine the equality cases.

math.GM