# Thread:

1. ## Find the number of elements in the intersection of 3 sets

Let A={ $n \in N$ | 5 divides n}
B={ $n \in N$| both n and $\frac {n}{5}$ contain only odd digits}
and C={ $n \in N$ | both n and $\frac {n}{5}$ contain exactly 2006 digits} where N
denotes the set of all natural numbers.
Find the number of elements in $A \cap B \cap C$

2. Originally Posted by alexmahone
Let A={ $n \in N$ | 5 divides n}
B={ $n \in N$| both n and $\frac {n}{5}$ contain only odd digits}
and C={ $n \in N$ | both n and $\frac {n}{5}$ contain exactly 2006 digits} where N
denotes the set of all natural numbers.
Find the number of elements in $A \cap B \cap C$
Sorry this is a partial answer, but maybe it will help you.

Since the number needs to stay 2006 digits after dividing by five, the last digit is necessarily 5, 7, or 9. The first two digits need to be 75 in the case of n. 75 is the only last two digit pair that is both odd, is divisible by five, and leads to a five in the last digits place.

Okay I think I have the rest of it now.

So you can have your last digit be 5, 7, or 9. So that means you either get remainder of 0, 2, or 4 after division. Now no number in your sequence of digits can be less than 5 because:

1st case) Your first digit of the 2006 is 5. Remainder is 0. Performing long division means you can only have 5, 7, or 9 in the next slot otherwise you would divide that slot and get 0. So whenever you have a 5 in the previous slot you have 3 choices for the next up until the third to last digit. So when 5 is your first digit you have 3 ^ 2003 possibilities.

2nd case) Your first digit is 7. Remainder is 2 after long division. The next digit must be greater than or equal to 5 otherwise you will get an even number after dividing. Eg. The 2 carries over and let's say you have either a 1 or a 3 in your next slot. 21 or 23 divided by 5 is 4. So again you have a sequence that always has 3 choices per slot. 3 ^ 2003 possibilities.

3rd case) Your first digit is 9. Remainder is 4 after long division. The next digit must be greater than or equal to 5 otherwise you will get an even number after dividing. Eg. The 4 carries over and let's say you have either a 1 or a 3 in your next slot. 41 or 43 divided by 5 is 8. So again you have a sequence that always has 3 choices per slot. 3 ^ 2003 possibilities.

3 * 3 ^ 2003 = 3 ^ 2004 possibilities.
{"extraction_info": {"found_math": true, "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": 12, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9092687368392944, "perplexity_flag": "head"}