def get_jeol_mqf_phasecycling(transition):
    """ Returns MQF phase cycling corresponding to the given transition.
    """
    if transition == 3:
        phase_cycling = (
            '\tobs_phs_MQexc\t\t=  {0,30,60,90,120,150,180,210,240,270,300,330};\n'
            )
        required_scan = int(12)
    elif transition == 5:
        phase_cycling = """	obs_phs_MQexc		=  {0,18,36,54,72,90,108,126,144,162,180,198,216,234,252,270,288,306,324,342};
"""
        required_scan = int(20)
    elif transition == 7:
        phase_cycling = """	obs_phs_MQexc		=  {0,90/7,2*90/7,3*90/7,4*90/7,5*90/7,6*90/7,90,8*90/7,9*90/7,10*90/7,11*90/7,12*90/7,13*90/7,180,15*90/7,16*90/7,17*90/7,18*90/7,19*90/7,20*90/7,270,22*90/7,23*90/7,24*90/7,25*90/7,26*90/7,27*90/7};
"""
        required_scan = int(28)
    elif transition == 9:
        phase_cycling = """	obs_phs_MQexc		=  {0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350};
"""
        required_scan = int(36)
    return phase_cycling, required_scan
