Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

You have to try this.....

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
Punkingal Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Dec-01-03 10:35 AM
Original message
You have to try this.....
Printer Friendly | Permalink |  | Top
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Dec-01-03 10:48 AM
Response to Original message
1. Math geek fun-spoiler, that's me:
Every number subtracted from a permutation of itself is necessarily a multiple of 9. (The same digit in place A minus the same digit in place B will be always of the form 99999.....99000...00)

Multiples of 9 have the property of having the sum of their digits also a multiple of 9.

Therefore, all the software has to do is pick the number the user typed, sum its digits until it's lower than 9 and subtracting 9 from that. This is the answer.
Printer Friendly | Permalink |  | Top
 
ScreamingMeemie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Dec-01-03 10:50 AM
Response to Reply #1
2. Well pooh on you. ;) Me, I like thinking that it's aliens or something.
:P
Printer Friendly | Permalink |  | Top
 
Punkingal Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Dec-01-03 11:08 AM
Response to Reply #1
3. Gee....
I KNEW there had to be a reasonable explanation, but I didn't know the first poster would jump in and EXPLAIN it immediately.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Dec 26th 2024, 09:43 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC