
// Make newform 1216.2.t.d in Magma, downloaded from the LMFDB on 25 April 2024.
// To make the character of type GrpDrchElt, type "MakeCharacter_1216_t();"
// To make the Hecke irreducible modular symbols subspace (type ModSym)
// containing the newform, type "MakeNewformModSym_1216_2_t_d();".
// This may take a long time!  To see verbose output, uncomment the SetVerbose line below.
// The default sign is -1.  You can change this with the optional parameter "sign".
// To make the character of type GrpDrchElt, type "MakeCharacter_1216_t();"
function MakeCharacter_1216_t()
    N := 1216;
    order := 6;
    char_gens := [191, 837, 705];
    v := [6, 3, 4];
    // chi(gens[i]) = zeta^v[i]
    assert UnitGenerators(DirichletGroup(N)) eq char_gens;
    F := CyclotomicField(order);
    chi := DirichletCharacterFromValuesOnUnitGenerators(DirichletGroup(N,F),[F|F.1^e:e in v]);
    return MinimalBaseRingCharacter(chi);
end function;

function MakeCharacter_1216_t_Hecke(Kf)
    return MakeCharacter_1216_t();
end function;


// To make the Hecke irreducible modular symbols subspace (type ModSym)
// containing the newform, type "MakeNewformModSym_1216_2_t_d();".
// This may take a long time!  To see verbose output, uncomment the SetVerbose line below.
// The default sign is -1.  You can change this with the optional parameter "sign".
function MakeNewformModSym_1216_2_t_d( : sign := -1)
    R<x> := PolynomialRing(Rationals());
    chi := MakeCharacter_1216_t();
    // SetVerbose("ModularSymbols", true);
    Snew := NewSubspace(CuspidalSubspace(ModularSymbols(chi,2,sign)));
    Vf := Kernel([<3,R![81, 0, -279, 0, 862, 0, -323, 0, 90, 0, -11, 0, 1]>,<5,R![36, 252, 672, 588, -428, -732, 603, 723, 160, -45, -12, 3, 1]>],Snew);
    return Vf;
end function;