![Copy content]() sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(25913, base_ring=CyclotomicField(2))
M = H._module
chi = DirichletCharacter(H, M([0]))
        sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(25913, base_ring=CyclotomicField(2))
M = H._module
chi = DirichletCharacter(H, M([0]))
         
     
    
    
        ![Copy content]() pari:[g,chi] = znchar(Mod(1,25913))
        pari:[g,chi] = znchar(Mod(1,25913))
         
     
    
  \(\chi_{25913}(1,\cdot)\)
    
        ![Copy content]() sage:chi.galois_orbit()
        sage:chi.galois_orbit()
         
     
    
    
        ![Copy content]() pari:order = charorder(g,chi)
[ charpow(g,chi, k % order) | k <-[1..order-1], gcd(k,order)==1 ]
        pari:order = charorder(g,chi)
[ charpow(g,chi, k % order) | k <-[1..order-1], gcd(k,order)==1 ]
         
     
    
 
\(3\) → \(1\)
  
    
      
        | \(a\) | \(-1\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) | \(7\) | \(8\) | \(9\) | \(10\) | \(11\) | 
    
    
      | \( \chi_{ 25913 }(1, a) \) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | \(1\) | 
  
 
    
        ![Copy content]() sage:chi.jacobi_sum(n)
        sage:chi.jacobi_sum(n)