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

Home > Numbers
All Evens (Posted on 2024-10-30) Difficulty: 3 of 5
Let n be an integer greater than 1.

If all digits of 1996*n are even, then find the smallest possible value of n.

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Computer Solution Comment 2 of 2 |
The smallest value for n is 333.
333 * 1996 =  664668

If there were the additional constraint that n be composed of only evens then:
444 * 1996 =  886224
-----------
odds = '13579'

for n in range(1,10000000):
    s = str(1996*n)
    fail = False
    for digit in odds:
        if digit in s:
            fail = True
            break
    if fail:
        continue
    print(n,1996*n)
    break



  Posted by Larry on 2024-10-30 09:59:24
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 (5)
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