combinatorics

How many positive integers of n digits chosen from the set {2,3,7,9} are divisible by 3 ?? ...

Note by Sayan Bose
8 years, 1 month ago

No vote yet
2 votes

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

There is 1 integer congruent to 1, 1 congruent to 2, and 2 congruent to 0 mod 3. They are all non zero so that makes life easy on us. Define a(n), b(n) and c(n) as the number of positive integers with n digits congruent to 0,1,2 mod 3, respectively.

a(1) = 2, b(1) = 1, c(1) = 1

a(n+1) = 2a(n) + b(n) + c(n)

b(n+1) = c(n+1) = 2b(1) + c(1) + a(1)

a(2) = 6, b(2) = c(2) = 5

a(3) = 22, b(3) = c(3) = 21

This suggests that a(n) = b(n) + 1 = c(n) + 1, which is easy to prove by induction (i'll leave the proof to you).

The resulting answer would then be a(n) = ((4^n)+2)/3

Gabriel Wong - 8 years, 1 month ago

2, because 3 and 9 are divisible by 3 whereas 2 and 7 are not.

You're welcome!

Tim Ye - 8 years, 1 month ago

3 and 9 are divisible

ANSHUL AGARWAL - 8 years, 1 month ago

y el 27?

Jemisson Coronel Baldeón - 8 years, 1 month ago

3 and 9

Vipin Tiwari - 8 years, 1 month ago
×

Problem Loading...

Note Loading...

Set Loading...