︠27e537a1-81d6-4cd5-b6d2-fe2ae21673d1s︠
def r(v,d,q):
    if d > v*(q-1):
        print('REJECTED. R-E-J-E-C-T-E-D. REJECTED')
        print('____________________________________')
    else:
        print('you have survived another day')
        r = d%(q-1)
        print(r, 'is your remainder. for now....')
        m = (d-r)/(q-1)
        print('*slaps function* This function can fit a lot (',m,') of multiplicities in it!')
        print('____________________________________')
#this should trigger survival, a remainder, and the multiplicity is 0
r(7,9,12)

# this should trigger survival, a remainder, and a multiplicity greater than 0
r(7,12,5)

# this should trigger a rejection because the degree is bigger than the boundary
r(3,15,4)
︡b0146a0a-f54d-41bd-9c54-e4e89d63953a︡{"stdout":"you have survived another day\n9 is your remainder. for now....\n*slaps function* This function can fit a lot ( 0 ) of multiplicities in it!\n____________________________________\n"}︡{"stdout":"you have survived another day\n0 is your remainder. for now....\n*slaps function* This function can fit a lot ( 3 ) of multiplicities in it!\n____________________________________\n"}︡{"stdout":"REJECTED. R-E-J-E-C-T-E-D. REJECTED\n____________________________________\n"}︡{"done":true}









