Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
numtheory[legendre] - Legendre symbol
Calling Sequence
legendre(a, p)
Parameters
a
-
integer
p
prime
Description
The legendre(a, p) function computes the Legendre symbol of a and p, which is defined to be if a is a quadratic residue , if a is a quadratic non-residue , and if a is congruent to . The number a is a quadratic residue mod p if it is not a multiple of p and has a square root , that is, there is an integer such that is congruent to . The number a is a quadratic non-residue mod p if it is not a multiple of p and does not have a square root .
Note: The legendre routine returns unevaluated if the given algebraic arguments are not of the types specified above.
The command with(numtheory,legendre) allows the use of the abbreviated form of this command.
Examples
See Also
mod, numtheory[jacobi], numtheory[quadres]
Download Help Document