wu :: forums
« wu :: forums - MS question 3 »

Welcome, Guest. Please Login or Register.
Apr 30th, 2024, 12:04am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   microsoft
(Moderators: Grimbal, ThudnBlunder, Icarus, william wu, Eigenray, towr, SMQ)
   MS question 3
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: MS question 3  (Read 10652 times)
kiki lee
Guest

Email

MS question 3  
« on: Jun 25th, 2003, 1:36pm »
Quote Quote Modify Modify Remove Remove

Generate a 9 digit number using the number 1-9, without using any number  
more than once.  this number must also be divisible such that if you take  
the left most digit the number is divisible by 1, if you take the two  
left most digits the number is divisible by 2, if you take the three left  
most digits the number is divisible by 3, etc., etc.  What is the number?  
IP Logged
Ozzie
Guest

Email

Re: MS question 3  
« Reply #1 on: Jun 26th, 2003, 11:16am »
Quote Quote Modify Modify Remove Remove

Can you please clarify what you mean by take the left n digits ?  Does that mean, for example, that if you are taking 3 left digits, that you are trying to make the 3 digits divisible by 3 or the remaining 6 digit number divisible by 3 ?
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: MS question 3  
« Reply #2 on: Jun 26th, 2003, 11:49am »
Quote Quote Modify Modify

I think she means you have number a,b,c,d,e,f,g,h,i that together are the numbers 1-9
and
i % 1 = 0  (% = modulus)
hi % 2 = 0
ghi % 3 = 0
fghi % 4 = 0
efghi % 5 = 0
defghi % 6 = 0
cdefghi % 7 = 0  
bcdefghi % 8 = 0
abcdeghi % 9 = 0
 
I think it's also allready on the site..
In any case it's easy to brute-force it with a simple program (trying every combination)
« Last Edit: Jun 26th, 2003, 11:51am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
wowbagger
Uberpuzzler
*****





242002184 242002184    


Gender: male
Posts: 727
Re: MS question 3  
« Reply #3 on: Jun 26th, 2003, 11:54am »
Quote Quote Modify Modify

I almost agree with you, towr.
You do know left from right, don't you?  Wink
 
Maybe someone like BNC will come up with a non-brute force answer.
IP Logged

"You're a jerk, <your surname>!"
BNC
Uberpuzzler
*****





   


Gender: male
Posts: 1732
Re: MS question 3  
« Reply #4 on: Jun 26th, 2003, 11:54am »
Quote Quote Modify Modify

on Jun 26th, 2003, 11:49am, towr wrote:

I think it's also allready on the site..

 
here
IP Logged

How about supercalifragilisticexpialidociouspuzzler [Towr, 2007]
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: MS question 3  
« Reply #5 on: Jun 27th, 2003, 1:11am »
Quote Quote Modify Modify

on Jun 26th, 2003, 11:54am, wowbagger wrote:
I almost agree with you, towr.
You do know left from right, don't you?  Wink

Not usually.. why? Grin
 
heh, I did get it right in the other thread Tongue
« Last Edit: Jun 27th, 2003, 1:13am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Claire Main
Guest

Email

Re: MS question 3  
« Reply #6 on: Aug 28th, 2004, 4:22pm »
Quote Quote Modify Modify Remove Remove

Actually the question is slightly different...this question asks for a 9 digit number using the digits 1-9, the other asks for a 10-digit number using 0-9 Smiley
IP Logged
Icarus
wu::riddles Moderator
Uberpuzzler
*****



Boldly going where even angels fear to tread.

   


Gender: male
Posts: 4863
Re: MS question 3  
« Reply #7 on: Sep 17th, 2004, 7:12pm »
Quote Quote Modify Modify

True - but if you can find the answer for one, the other is fairly obvious, isn't it? Smiley
IP Logged

"Pi goes on and on and on ...
And e is just as cursed.
I wonder: Which is larger
When their digits are reversed? " - Anonymous
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: MS question 3  
« Reply #8 on: Sep 18th, 2004, 11:19am »
Quote Quote Modify Modify

We can rephrase the conditions
(note a|b means a divides b i.e. b = a*n)
1.  always true
2.  2|b
3.  3|a+b+c
4.  4|cd  
5.  e = 5, and no other digit if 5
6.  2|f and 3|d+e+f
7.  7|abcdefg  
8.  8|gh  (8|fgh, but f is even)
9.  always true if all digits are used
 
- b,d,f,h are even, so a,c,e,g,i are odd.
- d+e+f must be an odd multiple of 3 with e=5.  Only 258, 456, 654 and 852 are possible for def.
- 4|cd, and c odd implies d is 2 or 6.  def = 258 or 654.
 
- a+b+c and g+h+i are even and multiples of 3.
 
- 8|gh and g odd implies g is 2 or 6.  gh = 16, 32, 72, 96.  (56 uses 5).
- 6|g+h+i, implies ghi is one of 321, 327, 723, 729, 963.
- the only possible def are resp. 654, 654, 654, 654, 258.
- the only possible abc or cba are 789, 189, 189, 183, 147.
 
This leaves only the following numbers
789654321
987654321
189654327
981654327
189654723
981654723
183654729
381654729
741258963
147258963
they all satisfy all divisibilities except by 7.
 
Only 381654729 satisfies the divisibility by 7.
IP Logged
coolnfundu
Junior Member
**





   
WWW

Posts: 116
Re: MS question 3  
« Reply #9 on: Oct 18th, 2004, 3:55am »
Quote Quote Modify Modify

it does not obey the second condition of divisibility by two
IP Logged

:: Cool Obvious is always wrong Cry ::
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: MS question 3  
« Reply #10 on: Oct 19th, 2004, 9:45am »
Quote Quote Modify Modify

The original riddle asked about the n left-most digits to be divisible by n.  So, it should read:
 
a % 1 = 0  (% = modulus)
ab % 2 = 0
abc % 3 = 0
abcd % 4 = 0
abcde % 5 = 0
abcdef % 6 = 0
abcdefg % 7 = 0  
abcdefgh % 8 = 0
abcdefghi % 9 = 0
 
And 78 is divisible by 2.
IP Logged
avatar
Newbie
*





   


Posts: 9
Re: MS question 3  
« Reply #11 on: May 2nd, 2008, 11:00pm »
Quote Quote Modify Modify

What is the algo for this
IP Logged
softsec
Newbie
*





   


Posts: 2
Re: MS question 3  
« Reply #12 on: Jan 27th, 2013, 2:21am »
Quote Quote Modify Modify

brootforced?
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board