![Copy content]() sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(1584, base_ring=CyclotomicField(2))
M = H._module
chi = DirichletCharacter(H, M([0,0,0,0]))
        sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(1584, base_ring=CyclotomicField(2))
M = H._module
chi = DirichletCharacter(H, M([0,0,0,0]))
         
     
    
    
        ![Copy content]() pari:[g,chi] = znchar(Mod(1,1584))
        pari:[g,chi] = znchar(Mod(1,1584))
         
     
    
  \(\chi_{1584}(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 ]
         
     
    
 
\((991,1189,353,145)\) → \((1,1,1,1)\)
  
    
      
        | \(a\) | \(-1\) | \(1\) | \(5\) | \(7\) | \(13\) | \(17\) | \(19\) | \(23\) | \(25\) | \(29\) | \(31\) | \(35\) | 
    
    
      | \( \chi_{ 1584 }(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)