English

An Indexing for Quadratic Residues Modulo $N$ and a Non-uniform Efficient Decoding Algorithm

Computational Complexity 2018-11-26 v2

Abstract

An \emph{indexing} of a finite set SS is a bijection D:{1,...,S}SD : \{1,...,|S|\} \rightarrow S. We present an indexing for the set of quadratic residues modulo NN that is decodable in polynomial time on the size of NN, given the factorization of NN. One consequence of this result is a procedure for sampling quadratic residues modulo NN, when the factorization of NN is known, that runs in strict polynomial time and requires the theoretical minimum amount of random bits (i.e., log(ϕ(N)/2r)\log{(\phi(N)/2^r)} bits, where ϕ(N)\phi(N) is Euler's totient function and rr is the number of distinct prime factors of NN). A previously known procedure for this same problem runs in expected (not strict) polynomial time and requires more random bits.

Keywords

Cite

@article{arxiv.1805.04731,
  title  = {An Indexing for Quadratic Residues Modulo $N$ and a Non-uniform Efficient Decoding Algorithm},
  author = {Nicollas M. Sdroievski and Murilo V. G. da Silva and André L. Vignatti},
  journal= {arXiv preprint arXiv:1805.04731},
  year   = {2018}
}
R2 v1 2026-06-23T01:52:54.012Z