English

Computing efficiently the weighted greatest common divisor

General Mathematics 2023-01-24 v2

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\gcd, we significantly reduce the numbers for which we want to compute wgcd. As a final result in this paper we prove that: If x=(x0,,xn)Zn+1\mathbf{x} = (x_{0},\dots ,x_{n})\in \mathbb{Z}^{n+1}, with weights w=(q0,,qn)\mathfrak{w}=(q_{0},\dots ,q_{n}) and q0qnq_{0}\leq \cdots \leq q_{n}, then wgcdw(x)=wgcdw(y0,y1,,yn){\rm wgcd}_w(\mathbf{x}) = {\rm wgcd}_w(y_0,y_1,\dots,y_n), where yi=gcd(xi,,xn)y_i = \gcd(x_i,\dots,x_n), and y0y1yny_0\leq y_1 \leq\dots \leq y_n.

Cite

@article{arxiv.2210.07961,
  title  = {Computing efficiently the weighted greatest common divisor},
  author = {Orgest Zaka},
  journal= {arXiv preprint arXiv:2210.07961},
  year   = {2023}
}

Comments

12 pages

R2 v1 2026-06-28T03:40:15.451Z