I am trying to find divisors of an element in the ring of integers of a Cyclotomic Field. My code is
K=CyclotomicField(23)
L=K.ring_of_integers()
L.factor(2)
It gives an error:
'AbsoluteOrder_with_category' object has no attribute 'factor'
I guess the problem is L is defined as an order here. But I need that to be a ring. How can I fix this problem?
Let us take some simpler cyclotomic fields first, and factor two in them:
This gives:
(Result was manually adjusted at two places to fit in the page.)
However, the cyclotomic field of order 23 is not a unique factorization domain, so we should factor the corresponding fractional ideal instead:
(Result was again manually adjusted to fit in the page.)