
// Make newform 252.2.bj.b in Magma, downloaded from the LMFDB on 29 September 2025.
// To make the character of type GrpDrchElt, type "MakeCharacter_252_bj();"
// To make the Hecke irreducible modular symbols subspace (type ModSym)
// containing the newform, type "MakeNewformModSym_252_2_bj_b();".
// 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_252_bj();"
function MakeCharacter_252_bj()
    N := 252;
    order := 6;
    char_gens := [127, 29, 73];
    v := [3, 2, 5];
    // 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_252_bj_Hecke( : Kf := Kf)
    return MakeCharacter_252_bj();
end function;


// To make the Hecke irreducible modular symbols subspace (type ModSym)
// containing the newform, type "MakeNewformModSym_252_2_bj_b();".
// 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_252_2_bj_b( : sign := -1)
    R<x> := PolynomialRing(Rationals());
    chi := MakeCharacter_252_bj();
    // SetVerbose("ModularSymbols", true);
    Snew := NewSubspace(CuspidalSubspace(ModularSymbols(chi,2,sign)));
    Vf := Kernel([<5,R![2187, 61965, 297027, -8165610, -9406746, 492887916, 595928664, -19753255134, 65278104627, -17899675743, -203705898953, 157369611474, 473863254980, -571531286526, -460210584489, 792767579133, 319582795966, -731469773715, -59033992819, 395961525822, -20190644910, -151867168200, 20890995180, 42407918664, -8011025565, -9125487573, 2058578001, 1530151344, -382546807, -203865297, 54740905, 21439284, -6029808, -1777332, 518868, 112518, -33705, -5289, 1632, 165, -52, -3, 1]>],Snew);
    return Vf;
end function;