Skip to content

DirichletGroup(1).list() returns the zero character #14368

@fredstro

Description

@fredstro

The Dirichlet group of modulus 1 should consist of the trivial character.
Something in the .list() generator seems to be broken in this case and it returns a character which takes the value 0 instead of 1.
However, note that list(D) works as expected and allegedly list(D)[0] is equal to D.list()[0].

sage: D=DirichletGroup(1)
sage: D.list()[0](1)
0
sage: list(D)[0](1)
1
sage: D.list()[0]==list(D)[0]
True

Component: number theory

Keywords: dirichlet characters, sd51

Author: Bartosz Naskrecki

Reviewer: David Loeffler

Merged: sage-5.12.beta4

Issue created by migration from https://trac.sagemath.org/ticket/14368

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions