sage:from sage.modular.dirichlet import DirichletCharacter
H = DirichletGroup(532, base_ring=CyclotomicField(6))
chi = DirichletCharacter(H, H._module([0, 2, 2]))
N = Newforms(chi, 2, names="a")
magma://Please install CHIMP (https://github.com/edgarcosta/CHIMP) if you want to run this code
chi := DirichletCharacter("532.121");
S:= CuspForms(chi, 2);
N := Newforms(S);
This newform subspace can be constructed as the kernel of the linear operator
T324+T323+26T322+15T321+425T320+193T319+4117T318+⋯+16
acting on S2new(532,[χ]).