I am new to sage and I searched the documentation, but could not find an answer for defining the ring of integers.
n = 7777
d = next_prime(n)
K.<a> = NumberField(x^2-d)
Now I want to define the ring of integers of the numberfield $K$. Is there a command which defines the ring of integers? Any suggestions how to do this?
As one might guess, the ring of integers of
Kcan be obtained asK.ring_of_integers().One way to discover this is to type
K.rinand then the TAB key to see what methodsKhas that start byrin. You will see the auto-completion toK.ring_of_integers.