fast-arithmetic-0.2.3.1: Fast functions on integers.

CopyrightCopyright (c) 2017 Vanessa McHale
Safe HaskellNone
LanguageHaskell2010

Numeric.NumberTheory

Description

This module provides fast number theoretic functions when possible.

Synopsis

Documentation

totient :: Int -> Int Source #

Euler totient function.

tau :: Int -> Int Source #

Number of distinct divisors.

sumDivisors :: Int -> Int Source #

Sum of proper divisors.

jacobi Source #

Arguments

:: Int

a

-> Int

n

-> Int 

The Jacobi symbol (a/n) (see here) for more.

This function is somewhat experimental, and future improvements to performance are expected.