combinatorics

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

Note by Sayan Bose
5 years, 1 month ago

No vote yet
2 votes

  Easy Math Editor

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 \times 3 \)
2^{34} \( 2^{34} \)
a_{i-1} \( a_{i-1} \)
\frac{2}{3} \( \frac{2}{3} \)
\sqrt{2} \( \sqrt{2} \)
\sum_{i=1}^3 \( \sum_{i=1}^3 \)
\sin \theta \( \sin \theta \)
\boxed{123} \( \boxed{123} \)

Comments

Sort by:

Top Newest

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 - 5 years, 1 month ago

Log in to reply

3 and 9 are divisible

Anshul Agarwal - 5 years, 1 month ago

Log in to reply

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

You're welcome!

Tim Ye - 5 years, 1 month ago

Log in to reply

3 and 9

Vipin Tiwari - 5 years, 1 month ago

Log in to reply

y el 27?

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

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...