גריי מאטר א Laws of Holidays / Should One Get Drunk on Purim? · יב
Gray Matter I 503
The Maharil (Hilchot Purim 10) cites a clever explanation of drinking until one cannot distinguish between "cursed be Haman" and "blessed be Mordechai" from the Agudah. He notes that the numerical value (gematria) of each Hebrew phrases (arur Haman, baruch Mordechai) equals 502. Accordingly, he explains that the Gemara obligates drinking until one cannot perform the calculations to reach 502 for the gematria of each phrase. This stage requires considerably less wine than the amount required for blurring the distinction between the characters Haman and Mordechai. The Maharil (ibid.) and Magen Avraham (695:3) accept this opinion.