File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes Number puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Number puzzle" Watch "Number puzzle" New topic
Author

Number puzzle

Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

Hi all,

289 => 187262
456 => 202492
748 => 283206
387 => ?

my observation:

289 => take 9 => 9*2=18, 9*8=72, 9*2+8=26 --> reverse it => 62 ==> 187262
456 => take 4 => 4*5=20, 4*6=24, 4*6+5=29 --> reverse it => 92 ==> 202492
748 => take 4 => 7*4=28, 4*8=32, 7*8*4=60 --> reverse it => 06 ==> 283206

so 387 ==> take 7 ==? 7*3=21, 7*8=56, 7*3+8=29 --> reverse it => 92 ==> 215692


Do you think I am correct. Or any suggestions or ideas? Help me please..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You used a different rule for 289 (start by multiplying the first and third digits) compared to the other two (start by multiplying the first and second digits). Why was that?
Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

Thanks for the reply.

for 289 I took the last element 9 and multiplied with the remaining
for 456 I took the first element 4 and multiplied with the remaining
for 748 I took the middle element and multiplied with the remaining

so for 387 i again took the last element

Its just my very random guess and I am not sure if this is the solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Number puzzle