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

Home > Numbers
All 1's (Posted on 2013-12-14) Difficulty: 3 of 5
(1) Find a test for divisibility by 111.

(2) Extending this, find a test for divisibility by any number consisting solely of 1's.

Please explain why your tests work.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re(2): Divide and conquer (spoiler) & a challenge Comment 3 of 3 |
(In reply to re: Divide and conquer (spoiler) & a challenge by Kenny M)

I think Steve's is a generalization of the standard divisibility test for 11, but instead of odd and even positions, you have positions mod 3, or in general mod the number of 1's in the potential divisor.  The odd-even test seems to be the best one available for 11, as that's the one always used.
  Posted by Charlie on 2013-12-15 10:14: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 (17)
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