Bodigrim / arithmoi

Number theory: primes, arithmetic functions, modular computations, special sequences
http://hackage.haskell.org/package/arithmoi
MIT License
147 stars 40 forks source link

Primitive roots and cyclic groups #86

Closed Bodigrim closed 6 years ago

Bodigrim commented 6 years ago

This branch is aimed to provide tools dealing with primitive roots as per #62. Despite the task sounds pretty humble, it required a lot of preparations such that:

The main module Math.NumberTheory.Moduli.PrimitiveRoot introduces a data type for cyclic groups or residues and routines for search of primitive roots.

cartazio commented 6 years ago

This looks great. I’ll have to dig into it. Keep up the great stuff :)