---
title: "Ideals of Index"
canonical: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/ideals_of_index.html"
source: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/ideals_of_index.md"
part: "Global Fields"
chapter: "Étale Algebras"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Global Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/index-global-fields.md"}
  - {"title": "Étale Algebras", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/index-etale-algebras.md"}
prev: {"title": "Intermediate Ideals", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/intermediate_ideals.md"}
next: {"title": "Short Element and Small Representative", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/short_elt_small_rep.md"}
intrinsics:
  - {"name": "IdealsOfIndex", "signature": "IdealsOfIndex(O, N): RngOrd, RngIntElt -> SeqEnum[RngOrdIdl]"}
  - {"name": "IdealsOfIndex", "signature": "IdealsOfIndex(I, N): RngOrdIdl, RngIntElt -> SeqEnum[RngOrdIdl]"}
  - {"name": "IdealsOfIndex", "signature": "IdealsOfIndex(I, N): RngOrdFracIdl, RngIntElt -> SeqEnum[RngOrdFracIdl]"}
  - {"name": "IdealsOfIndex", "signature": "IdealsOfIndex(I, N): AlgEtQIdl, RngIntElt -> SeqEnum[AlgEtQIdl]"}
  - {"name": "IdealsOfIndex", "signature": "IdealsOfIndex(O, N): AlgEtQOrd, RngIntElt -> SeqEnum[AlgEtQIdl]"}
---

# Ideals of Index

<a id="function-idealsofindex-rngord-rngintelt"></a>
## `IdealsOfIndex(O, N): RngOrd, RngIntElt -> SeqEnum[RngOrdIdl]`

Given an order $O$ in a number field and a positive integer $N$, returns all the ideals $I$ of index $[O:I]=N$.

<a id="function-idealsofindex-rngordidl-rngintelt"></a>
## `IdealsOfIndex(I, N): RngOrdIdl, RngIntElt -> SeqEnum[RngOrdIdl]`

Given an ideal $I$ in an order $O$ in a number field and a positive integer $N$, with $N$ coprime with the conductor, returns all the ideals $J$ contained in $I$ with index $[I:J]=N$.

<a id="function-idealsofindex-rngordfracidl-rngintelt"></a>
## `IdealsOfIndex(I, N): RngOrdFracIdl, RngIntElt -> SeqEnum[RngOrdFracIdl]`

Given an ideal $I$ in an order $O$ in a number field and a positive integer $N$, with $N$ coprime with the conductor, returns all the ideals $J$ contained in $I$ with index $[I:J]=N$.

<a id="function-idealsofindex-algetqidl-rngintelt"></a>
## `IdealsOfIndex(I, N): AlgEtQIdl, RngIntElt -> SeqEnum[AlgEtQIdl]`

```magma
Method: MonStgElt                    Default: "Default"
```

Given an $O$-ideal $I$ in $O$ and a positive integer $N$, returns all the subideals $J$ of $I$ with index $[I:J]=N$. The function is very fast if $N$ is coprime to the conductor of $O$. If this condition is not satisfied a slow algorithm is used which doesn’t require additional hypothesis. One can force the slow algorithm by setting the parameter `Method:="Slow"`.

<a id="function-idealsofindex-algetqord-rngintelt"></a>
## `IdealsOfIndex(O, N): AlgEtQOrd, RngIntElt -> SeqEnum[AlgEtQIdl]`

```magma
Method: MonStgElt                    Default: "Default"
```

Given an order $O$ and a positive integer $N$, returns all the $O$-ideals $J$ with index $[O:J]=N$. The function is very fast if $N$ is coprime to the conductor of $O$. If this condition is not satisfied a slow algorithm is used which doesn’t require additional hypothesis. One can force the slow-naive algorithm by setting the parameter `Method:="Slow"`.
