Learn R Programming

⚠️There's a newer version (0.8-5) of this package.Take me there.

numbers (version 0.7-5)

Number-Theoretic Functions

Description

Provides number-theoretic functions for factorization, prime numbers, twin primes, primitive roots, modular logarithm and inverses, extended GCD, Farey series and continuous fractions. Includes Legendre and Jacobi symbols, some divisor functions, Euler's Phi function, etc.

Copy Link

Version

Install

install.packages('numbers')

Monthly Downloads

9,125

Version

0.7-5

License

GPL (>= 3)

Maintainer

HwB

Last Published

November 26th, 2019

Functions in numbers (0.7-5)

primeFactors

Prime Factors
extGCD

Extended Euclidean Algorithm
ordpn

Order in Faculty
legendre_sym

Legendre and Jacobi Symbol
mersenne

Mersenne Numbers
previousPrime

Previous Prime
coprime

Coprimality
collatz

Collatz Sequences
isPrimroot

Primitive Root Test
eulersPhi

Eulers's Phi Function
egyptian_methods

Egyptian Fractions - Specialized Methods
numbers-package

numbers
isPrime

isPrime Property
omega

Number of Prime Factors
pythagorean_triples

Pythagorean Triples
quadratic_residues

Quadratic Residues
div

Integer Division
fibonacci

Fibonacci and Lucas Series
ratFarey

Farey Approximation
miller_rabin

Miller-Rabin Test
iNthroot

Integer N-th Root
Hermite normal form

Hermite Normal Form
isNatural

Natural Number
modlin

Modular Linear Equation Solver
modpower

Power Function modulo m
rem

Integer Remainder
moebius

Moebius Function
modlog

Modular (or: Discrete) Logarithm
divisors

List of Divisors
Sigma

Divisor Functions
dropletPi

Droplet Algorithm for pi and e
egyptian_complete

Egyptian Fractions - Complete Search
mod

Modulo Operator
necklace

Necklace and Bracelet Functions
primroot

Primitive Root
Primes

Prime Numbers
modinv, modsqrt

Modular Inverse and Square Root
nextPrime

Next Prime
twinPrimes

Twin Primes
zeck

Zeckendorf Representation
agm

Arithmetic-geometric Mean
contFrac

Continous Fractions
isIntpower

Powers of Integers
GCD, LCM

GCD and LCM Integer Functions
chinese remainder theorem

Chinese Remainder Theorem
bell

Bell Numbers
cf2num

Generalized Continous Fractions
catalan

Catalan Numbers