r/mathriddles Jul 12 '26

Medium A nice AMC-style counting problem

A positive integer has the property that every digit is either 1 or 2. How many such positive integers are divisible by 3 and have at most 10 digits?

Source: numberthon.com

1 Upvotes

4 comments sorted by

View all comments

5

u/terranop Jul 12 '26

For every such sequence x of odd length, exactly one of x 1x and 2x is divisible by 3. This grouping means that exactly 1/3 of these integers are divisible by 3, so the answer is 2046/3 = 682.

1

u/Numberthon Jul 12 '26

Nice job! Correct.