This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 18150
    
    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
 
Similar Threads
Passed IBM 252 - 92%
SCEA II/III passed with 92%
Passed SCWCD 92% and Prep Notes
Passed OCEJWCD 6 with 92%
Cleared SCWCD with 92%