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

Home > Numbers
A Quicky II (Posted on 2014-04-03) Difficulty: 1 of 5
For a given n what is the smallest number greater than n, not a multiple of n, but containing n in its binary representation?

Answer within 30 sec.

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Question Clarification? | Comment 1 of 7

Maybe it's just to early in the morning but I'm not sure I'm reading the problem correctly, is this what it's asking?

For example, let n = 2.  The binary representation of 2 is 10.  The smallest number that contains the digits "10" in its base 10 representation, that is not divisible by 2, is 101. 

Is that right?  And then the idea is to find a general solution for all n?


  Posted by tomarken on 2014-04-03 08:55:07
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
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