Browse Source

It is in fact spelt "Legendre", not "Legendere"

Petra Lamborn 5 years ago
parent
commit
f1f94e56dc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lucas.py

+ 1
- 1
lucas.py View File

@@ -32,7 +32,7 @@ def Dsequence():
32 32
             yield -val
33 33
         val = val + 2
34 34
 
35
-def Legendere(a, p):
35
+def Legendre(a, p):
36 36
     if (p % 2 == 0):
37 37
         raise ValueError("p must be odd, is {}".format(p))
38 38
     lv =  pow(a, (p-1)//2, p)