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?
Kis defined, and then you can inspect the methods ofKby tab-completion. So, after the first three lines, hit shift-return, then when you are typing the next line, you can tab-complete fromO = K.rin. – Samuel Lelièvre Apr 28 '18 at 23:24