Ask Your Question

Ys1123's profile - activity

2023-11-28 12:58:07 +0200 marked best answer On power residue symbol

I computed sum of power residue symbol in N th cyclotomic field:

def new_residue_symbol(a,P,N):
    if a not in P:
        return K(a).residue_symbol(P,N)
    else:
        return 0
N=3
K.<z>=CyclotomicField(N)
p=5
P =(K.ideal(p).factor())[0][0]#P is prime ideal above p
sum(new_residue_symbol(a,P,N) for a in P.residue_field())

This must be $0$ but sage put error typeerror: unable to convert 0 to Cyclotomic Field of order 3 and degree 2. How can I fix this? (When you change $p=7$, then sage put $0$. This might be lifting problem of representatives of residue field )

2023-11-22 06:44:40 +0200 commented answer On power residue symbol

If you don’t mind, you can edit your answer with some description. Your answer will be better than mine :).

2023-11-21 07:14:07 +0200 commented answer On power residue symbol

I reported there, but that’s not a bug.

2023-11-05 09:12:56 +0200 asked a question On power residue symbol

On power residue symbol I computed sum of power residue symbol in N th cyclotomic field: def new_residue_symbol(a,P,N):

2023-11-04 09:58:29 +0200 commented question On computation of Jacobi sum 2

I improved the code, please check.

2023-11-03 08:29:00 +0200 edited question On computation of Jacobi sum 2

On computation of Jacobi sum 2 I’m computing Jacobi sum of power residue symbol as follows: def new_residue_symbol(a,P,

2023-11-03 06:29:09 +0200 edited question On computation of Jacobi sum 2

On computation of Jacobi sum 2 I’m computing Jacobi sum of power residue symbol as follows: def Jacobi(P,l,j): x=su

2023-11-02 16:58:53 +0200 edited question On computation of Jacobi sum 2

On computation of Jacobi sum 2 I’m computing Jacobi sum of power residue symbol as follows: def Jacobi(P,l,j): x=su

2023-11-02 16:53:49 +0200 asked a question On computation of Jacobi sum 2

On computation of Jacobi sum 2 I’m computing Jacobi sum of power residue symbol as follows: def Jacobi(P,l,j): x=su

2023-11-02 14:46:07 +0200 commented question On computation of Jacobi sum

Oh my goodness.Thank you.

2023-11-02 11:08:32 +0200 edited question On computation of Jacobi sum

On computation of Jacobi sum I’m computing Jacobi sum of cubic residue symbol as follows: N=3 x=polygen(ZZ,'x') K.<z

2023-11-02 11:07:15 +0200 asked a question On computation of Jacobi sum

On computation of Jacobi sum I’m computing Jacobi sum of cubic residue symbol as follows: N=3 x=polygen(ZZ,'x') K.<z

2023-11-02 11:01:57 +0200 received badge  Popular Question (source)
2023-10-26 09:12:21 +0200 marked best answer How can I obtain representatives of a quotient ring?

I want to compute quotient of integer ring of $\mathbb{Q}(\omega) (\omega^3=1)$ by a prime ideal $(-4-3\omega)$. Especially I want to compute representatives.

N=3
x=polygen(ZZ,'x')
K.<a>=CyclotomicField(N)
O = K.ring_of_integers()
p=-4-3*a
R.<b,c>=QuotientRing(O, K.ideal(p))

What should I do next?

More, I want to compute its cardinality (=13), But

R.cardinality()

made error.

2023-10-11 08:14:52 +0200 commented answer Computing the order of an ideal in a ray class group

This code no longer works. See this forum.

2023-10-09 06:48:13 +0200 commented answer How can I obtain representatives of a quotient ring?

Thank you. What does R(a) mean? By the way this way seems very ad hoc. Isn’t there any ways to compute representatives o

2023-10-08 15:48:02 +0200 commented answer How to factor an integer apparently including irrational numbers

Thank you again! The problem solved by following code! S=[((3+sqrt(8))^i+(3-sqrt(8))^i)/2 for i in [1..40]] [ZZ(a.expan

2023-10-08 15:46:13 +0200 marked best answer How to factor an integer apparently including irrational numbers

I want to do prime factorization of following $a$

a=sqrt(2)+6-sqrt(2)
a.factor()

But sage says simply

6

What should I do?

(I originally wanted to factor $\frac{(3+\sqrt{8})^i +(3-\sqrt{8})^i}{2}$ for i in [1..40])

2023-10-08 15:46:13 +0200 received badge  Scholar (source)
2023-10-08 15:46:06 +0200 commented answer How to factor an integer apparently including irrational numbers

Thank you again! The problem solved by following code! S=[((3+sqrt(8))^i+(3-sqrt(8))^i)/2 for i in [0..40]] [ZZ(a.expan

2023-10-08 10:52:01 +0200 asked a question How can I obtain representatives of a quotient ring?

How can I obtain representatives of a quotient ring? I want to compute quotient of integer ring of $\mathbb{Q}(\omega) (

2023-10-08 05:43:06 +0200 commented answer How to factor an integer apparently including irrational numbers

Thank you. Then I want to move on original question: a=((3+sqrt(8))^3+(3-sqrt(8))^3)/2 ZZ(a).factor() But then sage p

2023-10-07 08:47:39 +0200 edited question How to factor an integer apparently including irrational numbers

How to factor an integer apparently including irrational numbers I want to do prime factorization of following $a$ a=sq

2023-10-07 06:37:01 +0200 received badge  Editor (source)
2023-10-07 06:37:01 +0200 edited question How to factor an integer apparently including irrational numbers

How to factor an integer apparently including irrational numbers I want to do prime factorization of following $a$ a=sq

2023-10-07 06:07:10 +0200 asked a question How to factor an integer apparently including irrational numbers

How to factor an integer apparently including irrational numbers I want to do prime factorization of following $a$ a=sq

2023-10-03 13:16:22 +0200 commented answer Computing the order of an ideal in a ray class group

This code no longer works. See this forum .