Emulating primality with multiset representations of natural numbers

  • Authors:
  • Paul Tarau

  • Affiliations:
  • Department of Computer Science and Engineering, University of North Texas, Denton, Texas

  • Venue:
  • ICTAC'11 Proceedings of the 8th international conference on Theoretical aspects of computing
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Factorization results in multisets of primes and this mapping can be turned into a bijection between multisets of natural numbers and natural numbers. At the same time, simpler and more efficient bijections exist that share some interesting properties with the bijection derived from factorization. This paper describes mechanisms to emulate properties of prime numbers through isomorphisms connecting them to computationally simpler representations involving bijections from natural numbers to multisets of natural numbers. As a result, interesting automorphisms of N and emulations of the rad, Möbius and Mertens functions emerge in the world of our much simpler multiset representations. The paper is organized as a self-contained literate Haskell program. The code extracted from the paper is available as a standalone program at http://logic.cse.unt.edu/tarau/research/2011/mprimes.hs.