Пример #1
0
 def line(N):
     l = []
     count = 0
     for modulus in range(N, 250):
         G = DirichletGroup_conrey(modulus)
         for j, chi in enumerate(G):
             if count == 8:
                 break
             elif chi.multiplicative_order() == N:
                 count += 1
                 l.append((modulus, chi.number(), chi.is_primitive(), chi.multiplicative_order(), k(chi)))
         if count == 8:
             break
     return l
Пример #2
0
 def line(N):
     l = []
     count = 0
     modulus = N
     while count < 7:
         if modulus % N == 0:
             G = DirichletGroup_conrey(modulus)
             for chi in G:
                 j = chi.number()
                 print chi.conductor(), j, N
                 if count == 7:
                     break
                 elif chi.conductor() == N:
                     count += 1
                     l.append((modulus, j, chi.is_primitive(), chi.multiplicative_order(), k(chi)))
         modulus += N
         if count == 0:
             break
     return l