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?