Learn R Programming

numbers (version 0.8-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 continued fractions. Includes Legendre and Jacobi symbols, some divisor functions, Euler's Phi function, etc.

Copy Link

Version

Install

install.packages('numbers')

Monthly Downloads

9,999

Version

0.8-5

License

GPL (>= 3)

Maintainer

Last Published

November 23rd, 2022

Functions in numbers (0.8-5)

catalan

Catalan Numbers
bell

Bell Numbers
GCD, LCM

GCD and LCM Integer Functions
isIntpower

Powers of Integers
collatz

Collatz Sequences
cf2num

Generalized Continous Fractions
chinese remainder theorem

Chinese Remainder Theorem
agm

Arithmetic-geometric Mean
Bernoulli numbers

Bernoulli Numbers
Carmichael numbers

Carmichael Numbers
divisors

List of Divisors
extGCD

Extended Euclidean Algorithm
egyptian_complete

Egyptian Fractions - Complete Search
dropletPi

Droplet Algorithm for pi and e
coprime

Coprimality
egyptian_methods

Egyptian Fractions - Specialized Methods
eulersPhi

Eulers's Phi Function
contfrac

Continued Fractions
div

Integer Division
iNthroot

Integer N-th Root
primeFactors

Prime Factors
isPrimroot

Primitive Root Test
isPrime

isPrime Property
numbers-package

tools:::Rd_package_title("numbers")
fibonacci

Fibonacci and Lucas Series
Hermite normal form

Hermite Normal Form
modlin

Modular Linear Equation Solver
mod

Modulo Operator
modlog

Modular (or: Discrete) Logarithm
modinv, modsqrt

Modular Inverse and Square Root
omega

Number of Prime Factors
periodicCF

Periodic continued fraction
Pascal triangle

Pascal Triangle
primroot

Primitive Root
ordpn

Order in Faculty
Primes

Prime Numbers
rem

Integer Remainder
previousPrime

Previous Prime
quadratic_residues

Quadratic Residues
mersenne

Mersenne Numbers
modpower

Power Function modulo m
solvePellsEq

Solve Pell's Equation
pythagorean_triples

Pythagorean Triples
Stern-Brocot

Stern-Brocot Sequence
legendre_sym

Legendre and Jacobi Symbol
moebius

Moebius Function
twinPrimes

Twin Primes
isNatural

Natural Number
zeck

Zeckendorf Representation
Sigma

Divisor Functions
Farey Numbers

Farey Approximation and Series
necklace

Necklace and Bracelet Functions
miller_rabin

Miller-Rabin Test
nextPrime

Next Prime