LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2008, 02:22 PM   #1
2-tone-joe
Member
 
Registered: Dec 2007
Posts: 31

Rep: Reputation: 15
Math Equation Needed


How do i find the maximum combination of numbers in a field that holds . . . 32 numbers?
 
Old 02-11-2008, 02:37 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
In which programming language? And what have you done so far? (show your workings)
 
Old 02-11-2008, 03:02 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-11-2008, 03:16 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do you mean 32 fields, each of which can be a digit 0-9?

If so, that's a REALLY big number.....The biggest named number I could find was the Yotta (1E24). You will have 100 million yotta combinations.
 
Old 02-12-2008, 12:37 AM   #5
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
CLisp calls a yotta "one septillion" and 100 million yottas is "one hundred nonillion"

I guess the OP meant bits though. I would suggest starting with simpler cases. How many possibilities for 1 field? How many for 2? 3?, do you see a pattern yet...
 
Old 02-12-2008, 02:14 AM   #6
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by pixellany View Post
The biggest named number I could find was the Yotta (1E24).
There is always the googol (10 raise to the power 100), and it's big brother the googolplex 10 raised to a googol, or 1 followed by a google number of zeros, really that's unnecessarily big.
 
Old 02-12-2008, 04:49 AM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
googol, googol, where did I hear that word before?

What again is the total number of particles in the universe?

jlinkels
 
Old 02-12-2008, 05:05 AM   #8
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Oh somewhere between 10 to the 70 and 10 to the 80, so yes makes a googol rather sizable
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Linux Equation LXer Syndicated Linux News 0 08-14-2006 10:03 PM
math program that I can enter math functions ... Four General 5 04-19-2006 08:02 PM
Transparency Equation leonidg Programming 3 02-08-2005 02:38 AM
an equation in c language liquid sky Programming 5 03-22-2004 02:25 PM
How to create equation in Abiword ? futurist General 9 04-07-2002 12:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration