1800-212-7858 (Toll Free)
9:00am - 8:00pm IST all days
8104911739

or

Thanks, You will receive a call shortly.
Customer Support

You are very important to us

022-62211530

Mon to Sat - 11 AM to 8 PM

# Permutation & Combination

Asked by 4th March 2013, 12:07 PM
First, we can ignore 1000000 since its sum of digits is not 18. Also, let's add 0's in front of numbers to have 6 digits if the number has less than 6 digits. So our range is going to be from 000001 to 999999.

Number of partition of 18 into 6 whole number is
(18+6-1)C(6-1)=(23)C(5). Assign these 6 numbers to the 6 digits.

Now, we need to remove the cases where one digit is 10 or bigger. It is very good thing that two digits cannot be 10 or bigger, as the sum would go over 18.

Let one digit has x, where x>=10. The sum of the other 5 digits is 18-x. Since 18-x is partitioned into 5 whole numbers, we have (18-x+4)C(4) possible ways. This should be multiplied by 6 since the big digit can be the first digit, second digit, ..., sixth digit. x is from 10 to 18. So we need to calculate 6((12)C(4) + (11)C(4) + .... + (4)C(4)).

Since (n)C(m)+(n)C(m+1)=(n+1)C(m+1), we get
(4)C(4) + (5)C(4) + (6)C(4) + (7)C(4) + .... + (12)C(4)
=((5)C(5) + (5)C(4)) + (6)C(4) + (7)C(4) + .... + (12)C(4)
=((6)C(5) + (6)C(4)) + (7)C(4) + .... + (12)C(4)
...
=(13)C(5).
Now, since any of the six digits can be greater than 10. So, we need to subtract 6* (13)C(5)
Answered by Expert 5th March 2013, 12:24 AM
• 1
• 2
• 3
• 4
• 5
• 6
• 7
• 8
• 9
• 10

You have rated this answer /10
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.topperlearning.com/doubts-solutions/permutation-combination-vw3sqa66/", "fetch_time": 1563912538000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2019-30/segments/1563195529664.96/warc/CC-MAIN-20190723193455-20190723215455-00269.warc.gz", "warc_record_offset": 842176953, "warc_record_length": 48673, "token_count": 602, "char_count": 1531, "score": 4.3125, "int_score": 4, "crawl": "CC-MAIN-2019-30", "snapshot_type": "latest", "language": "en", "language_score": 0.838035523891449, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00062-of-00064.parquet"}