Our teacher, the Rema, wrote at the end of section 1: If a Chanukah candle that is forbidden for benefit became mixed with other candles, even one in a thousand—it is not nullified, for it is a thing of counting. Rather, he should light from the mixture enough so that certainly a permitted candle is burning with the forbidden candle, and then it is permitted to use their proximity. Thus far his words, meaning: that it had begun to burn and was extinguished immediately, for it is forbidden for benefit. For if it had not yet been lit—it was not forbidden for benefit, for designation is not a significant matter. But when it was lit—it became forbidden for benefit. And even though he himself ruled in Yoreh Deah at the beginning of siman 110 that specifically a thing whose way is to always be counted—is not nullified, but if sometimes they are also sold by weight—it is nullified. And if so, candles as well are certainly sometimes sold by weight. However, Chanukah candles are always sold by count, because of the importance of the mitzvah, and therefore it is not nullified. And therefore there is no permission except when a permitted candle is burning together with the forbidden candle, and that is to say if one Chanukah candle was mixed in—he should light two candles, and if two were mixed in—he should light three, and so always. And just as with the Chanukah candle itself if there is another candle—it is permitted to use its light, as has been explained, so too in the mixtures when there is another permitted candle, it is permitted to use its light. And even though the light is increased also by means of the forbidden item, nevertheless we are not concerned for it, as I have written regarding the Chanukah candle itself.
כתב רבינו הרמ"א בסוף סעיף א: אם נתערב נר חנוכה האסור בהנאה בשאר נרות, אפילו אחד באלף – לא בטיל, דהוי דבר של מניין. אלא ידליק מן התערובת כל כך שבוודאי נר של היתר דולק עם נר של איסור, ואז מותר להשתמש אצלן. עד כאן לשונו, כלומר: שהתחילה להדליק ונכבתה מיד, דאסורה בהנאה. דאלו לא נדלקה עדיין – לא נאסרה בהנאה, דהזמנה לאו מילתא היא. אבל כשנדלקה – נאסרה בהנאה. ואף על גב דבעצמו פסק ביורה דעה ריש סימן קי דדווקא דבר שדרכו למנותו תמיד – לא בטיל, אבל אם לפעמים מוכרין גם במשקל – בטל. ואם כן, גם נרות פשיטא שמוכרין לפעמים במשקל. אך נרות חנוכה תמיד מוכרין במניין, מפני חשיבותא דמצוה, ולכן לא בטיל. ולכן אין היתר אלא כשיהיה נר של היתר דולק ביחד עם נר האסור, והיינו אם נתערבה נר אחת של חנוכה – ידליק שתי נרות, ואם נתערבו שתים – ידליק שלוש, וכן לעולם. וכמו דבנר חנוכה עצמו אם יש נר אחר – מותר להשתמש לאורה, כמו שנתבאר, כמו כן בתערובות ויש נר אחר של היתר, דמותר להשתמש לאורה. ואף שהאור מתרבה גם על ידי האיסור, מכל מקום לא חיישינן לה, כמו שכתבתי בנר חנוכה עצמה.