All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Based on threes! (Posted on 2019-04-09) Difficulty: 3 of 5
How many positive integers less than or equal to 100 cannot be written as the sum of distinct powers of 3?

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Explanation to Puzzle Answer Comment 5 of 5 |
(In reply to Puzzle Answer by K Sengupta)

Positive integers that can be written as the sum of distinct powers of 3 must contain only 0s and 1s (no 2s) in its ternary (base 3) representation. 

Now we observe that:
100 =3^4 +2*3^2 +1 and hence  equal to  10201 in base 3.
The ternary number immediately less than 10201 which is constituted entirely by 0s and 1s is 10111 (94 in base 10).
So the corresponding ordinal value(or, count)  is obtained by expressing 10111 as a binary number which is 23 in base 10.
Accordingly,  precisely 23 positive integers <= 100 can be written as sum of distinct powers of 3.
Consequently,  # positive integers  <= 100 which is NOT inclusive of the foregoing property must be 100-23 = 77

  Posted by K Sengupta on 2022-06-04 01:55:30
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (11)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information