{"status": "success", "data": {"description_md": "There are $20$ bags in a room, each one with a $5$ dollar and $7$ dollar bill. Each bag contains a bill of a different color (the bills from different bags are distinguishable). You can select either $0$ or $1$ bill from each bag. How many ways are there to pay $17$ dollars by selecting bills from these bags. Paying with bills from different bags is considered different.", "description_html": "<p>There are <span class=\"katex--inline\">20</span> bags in a room, each one with a <span class=\"katex--inline\">5</span> dollar and <span class=\"katex--inline\">7</span> dollar bill. Each bag contains a bill of a different color (the bills from different bags are distinguishable). You can select either <span class=\"katex--inline\">0</span> or <span class=\"katex--inline\">1</span> bill from each bag. How many ways are there to pay <span class=\"katex--inline\">17</span> dollars by selecting bills from these bags. Paying with bills from different bags is considered different.</p>&#10;", "hints_md": "Use [Generating Functions (GF)](https://artofproblemsolving.com/wiki/index.php/Generating_function). You'll also need some knowledge on the [Maclaurin Series](https://artofproblemsolving.com/wiki/index.php/Taylor_polynomial#Maclaurin_polynomial) and the [Binomial Theorem](https://artofproblemsolving.com/wiki/index.php/Binomial_Theorem).\n\nMaclaurin & Binomial Theorem TLDR for this problem ($n \\in \\mathbb{C}$): $$(1+x)^n = 1+nx+\\frac{n(n-1)}{2!}x^2+\\frac{n(n-1)(n-2)}{3!}x^3+\\cdots=\\sum\\limits_{k=0}^\\infty \\frac{n(n-1)\\cdots(n-k+1)x^k}{k!}. $$", "hints_html": "<p>Use <a href=\"https://artofproblemsolving.com/wiki/index.php/Generating_function\">Generating Functions (GF)</a>. You&#8217;ll also need some knowledge on the <a href=\"https://artofproblemsolving.com/wiki/index.php/Taylor_polynomial#Maclaurin_polynomial\">Maclaurin Series</a> and the <a href=\"https://artofproblemsolving.com/wiki/index.php/Binomial_Theorem\">Binomial Theorem</a>.</p>&#10;<p>Maclaurin &amp; Binomial Theorem TLDR for this problem (<span class=\"katex--inline\">n \\in \\mathbb{C}</span>): <span class=\"katex--display\">(1+x)^n = 1+nx+\\frac{n(n-1)}{2!}x^2+\\frac{n(n-1)(n-2)}{3!}x^3+\\cdots=\\sum\\limits_{k=0}^\\infty \\frac{n(n-1)\\cdots(n-k+1)x^k}{k!}.</span></p>&#10;", "editorial_md": "", "editorial_html": "", "flag_hint": "", "point_value": 3, "problem_name": "Electric Generator", "can_next": false, "can_prev": false, "nxt": "", "prev": ""}}