---
title: "Tamagawa Numbers and Component Groups of Neron Models"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularAbelianVarieties/compgrp.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularAbelianVarieties/compgrp.md"
part: "Modular Arithmetic Geometry"
chapter: "Modular Abelian Varieties"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modular Arithmetic Geometry", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/index-modular-arithmetic-geometry.md"}
  - {"title": "Modular Abelian Varieties", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularAbelianVarieties/index-modular-abelian-varieties.md"}
prev: {"title": "Complex Period Lattice", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularAbelianVarieties/periods.md"}
next: {"title": "Elliptic Curves", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularAbelianVarieties/ellcrv.md"}
intrinsics:
  - {"name": "ComponentGroupOrder", "signature": "ComponentGroupOrder(A, p): ModAbVar, RngIntElt -> RngIntElt"}
  - {"name": "TamagawaNumber", "signature": "TamagawaNumber(A, p): ModAbVar, RngIntElt -> RngIntElt, RngIntElt, BoolElt"}
  - {"name": "TamagawaNumber", "signature": "TamagawaNumber(A): ModAbVar -> RngIntElt, RngIntElt, BoolElt"}
examples:
  - "ex-535c76"
  - "ex-0a4c08"
---

<a id="compgrp"></a>
<a id="sec-compgrp"></a>
# Tamagawa Numbers and Component Groups of Neron Models

## Component Groups

Suppose $A$ is a newform modular abelian variety over ${\mathbb{Q}}$ over level $N$. For any prime $p$ that exactly divides $N$, the order of the component group of $A$ over the algebraic closure of ${\bf F}_{p}$ can be computed. The nontrivial algorithm is described in [[CS01a](https://docs.magma-maths.org/v2.30-1/references.md#cite-conrad-stein-compgroup)] and [[KS00a](https://docs.magma-maths.org/v2.30-1/references.md#cite-kohel-stein-ants4)]. It is an open problem to compute the structure of the component group or the order under more general hypothesis.

<a id="function-componentgrouporder-modabvar-rngintelt"></a>
### `ComponentGroupOrder(A, p): ModAbVar, RngIntElt -> RngIntElt`

The order of the component group of the special fiber of the Neron model of $A$ over the algebraic closure of ${\bf F}_{p}$. The abelian variety $A$ must be attached to a newform.

<a id="example-ex-535c76"></a>
### `Example: Component Group Orders (ex-535c76)`

```magma
> J := JZero(65); J;
Modular abelian variety JZero(65) of dimension 5 and level 5*13 over Q
> A := Decomposition(J)[3];
> ComponentGroupOrder(A,13);
1
> ComponentGroupOrder(A,5);
7
```

## Tamagawa Numbers

Suppose $A$ is an abelian variety over ${\mathbb{Q}}$ that is attached to a newform. A divisor and an integer some power of which is a multiple of the Tamagawa number of $A$ at a prime $p$ can be determined. When $p^2$ divides the level, the reduction is additive, we use the Lenstra-Oort bound from [[LO85](https://docs.magma-maths.org/v2.30-1/references.md#cite-lenstra-oort-additive)].

<a id="function-tamagawanumber-modabvar-rngintelt"></a>
### `TamagawaNumber(A, p): ModAbVar, RngIntElt -> RngIntElt, RngIntElt, BoolElt`

A divisor of the Tamagawa number of the abelian variety $A$ at the prime $p$ and an integer some power of which is a multiple of the Tamagawa number of $A$ at $p$. Also return `true` if the divisor of the Tamagawa number is provably equal to the Tamagawa number of $A$. The abelian variety $A$ must be attached to a newform.

<a id="function-tamagawanumber-modabvar"></a>
### `TamagawaNumber(A): ModAbVar -> RngIntElt, RngIntElt, BoolElt`

Let $c$ be the product of the Tamagawa numbers of $A$ at primes of bad reduction, where $A$ is an abelian variety over ${\mathbb{Q}}$ attached to a newform. This command returns a divisor of $c$, an integer some power of which is a multiple of $c$, and `true` if the divisor is provably equal to $c$.

<a id="example-ex-0a4c08"></a>
### `Example: Tamagawa Numbers of Abelian Varieties (ex-0a4c08)`

```magma
> J := JZero(65);
> TamagawaNumber(J(2),5);
2 2 false
> TamagawaNumber(J(2),13);
3 3 true
> TamagawaNumber(J(3),5);
7 7 true
> TamagawaNumber(J(3),13);
2 2 false
>
> J := JZero(5^2*7);
> TamagawaNumber(J(1));
2 30 false
> TamagawaNumber(J(1),5);
1 30 false
> TamagawaNumber(J(1),7);
2 2 false
```
