Combi problem (with number theory I suppose?)

This is not relevant for jee but the first part was easy but the second one seems to elude me, case-working for small numbers didn't help either.
WhatsApp_Image_2025-06-15_at_11.00.21_abffb5c0.jpg
Was this page helpful?