Summer

349 days ago by raraavis

K=CyclotomicField(31); 
       
       
Cyclotomic Field of order 31 and degree 30
Cyclotomic Field of order 31 and degree 30
p=K.absolute_generator() 
       
       
zeta31
zeta31
a^31 
       
1
1
b=a+a^5+a^9+a^10 
       
       
zeta31^10 + zeta31^9 + zeta31^5 + zeta31
zeta31^10 + zeta31^9 + zeta31^5 + zeta31
T=b.galois_conjugates(K) 
       
T[30] 
       
Traceback (click to the left of this block for traceback)
...
IndexError: list index out of range
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_46.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("VFszMF0="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpi3CRK3/___code___.py", line 3, in <module>
    exec compile(u'T[_sage_const_30 ]
  File "", line 1, in <module>
    
IndexError: list index out of range
T[0] 
       
zeta31^8 + zeta31^7 + zeta31^4 + zeta31
zeta31^8 + zeta31^7 + zeta31^4 + zeta31
z=0 p=K. for a in range(32): for b in range(2): for c in range(4): for d in range(4): if (32*a+(32+4)*b+(32+8)*c+(32+8+1)*d)<=(2*4*31-2): t=1+a+5*b+9*c+10*d z=z+p^t print z 
       
Traceback (click to the left of this block for traceback)
...
NameError: name 'p' is not defined
Traceback (most recent call last):                        t=1+a+5*b+9*c+10*d
  File "", line 1, in <module>
    
  File "/tmp/tmpE_cEIi/___code___.py", line 10, in <module>
    z=z+p**t
NameError: name 'p' is not defined
       
0
0
       
zeta31
zeta31