## 6 digits combination

6 digits combination
# 1
05-14-2014
6 digits combination

Is there any program that can create 6 digit numbers with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
Any perl or C also can. Anyone can help me? Thank you
 Tzeronone View Public Profile for Tzeronone Find all posts by Tzeronone
# 2
05-14-2014
Purpose of request

Can you explain the purpose for this request?
Looks like an assignment or test of some form.
 joeyg View Public Profile for joeyg Find all posts by joeyg
# 3
05-14-2014
it's not an assignment... just an interest to create possible number combination
 Tzeronone View Public Profile for Tzeronone Find all posts by Tzeronone
# 4
05-14-2014
I don't follow what you're after....
Do you just want to create a random 6 digit number (1 - 999999)?
Not sure what this summation formula supposed to do either...
Please elaborate with example(s) if possible
 vgersh99 View Public Profile for vgersh99 Find all posts by vgersh99
# 5
05-14-2014
Yes, i want to create a random 6 digit number with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
For example:
0-0-0-0-9-1
0-0-0-9-0-1
2-2-2-2-2-0
and so on
 Tzeronone View Public Profile for Tzeronone Find all posts by Tzeronone
# 6
05-14-2014
Imagine that you have 10 separate 1's to add to your number. Pick ten numbers from one to five, and add one to each of those digits.
 Corona688 View Public Profile for Corona688 Visit Corona688's homepage! Find all posts by Corona688
# 7
05-15-2014
 This is a very interesting problem, but: 1. it has nothing to do with UNIX or UNIX tools. It is just an algorithmic challenge. This wouldn't be so bad on itself, but see below. 2. You claimed that this is not homework and you are doing it just out of interest. Still, in this case you would have at least undertaken some thinking on how to solve it and presented them here along with the problem statement. What is the point in trying to solve puzzles if your only genuine contribution is to ask other people to solve it for you? 3. If this would have at least a remote real-world impact you would have limited the tools - languages, platforms, ... in some way. that you didn't reinforces my point that is problem was not posed upon you by yourself but by outside request - homework, take-home question in a job interview or the like - to be precise. It would be understandable for a professor/possibly hiring company/... to test your algorithmic skills by not limiting to any platform or language environment, but it is highly unlikely for you not to have any personal preference at all. For what is worth, you would have to understand the solution once it is presented to you and this is possible only with a language at least remotely known by you. What would you have done would anyone have written and posted a program in FORTH, APL2, ALGOL68 or another outlandish language, hm? As long as you can't disprove my suspicion i close this thread for most probably being homework. Open a thread in the homework forum with the correct identification necessary there. All the others: please refrain from providing solutions to dubious (albeit concededly interesting) problems. We have a "homework rule" in place for a reason and we do not want to encourage anybody breaking it.

bakunin
These 3 Users Gave Thanks to bakunin For This Post:
 bakunin View Public Profile for bakunin Find all posts by bakunin

## sed / awk script to delete the two digits from first 3 digits

Hi All , I am having an input file as stated below 5728 U_TOP_LOGIC/U_CM0P/core/u_cortexm0plus/u_top/u_sys/u_core/r03_q_reg_20_/Q 011 611 U_TOP_LOGIC/U_CM0P/core/u_cortexm0plus/u_top/u_sys/u_core/r04_q_reg_20_/Q 011 3486...

## Kill -9 -1 combination

Good morning, In a Production environment ive seen this command that kills processes kill -9 -1 Because i am in a production environmet i can not execute this comamnd, so i would like to know what is the difference for the conventional kill -9 PID ? Thanks a lot

## Combination of 6 nos

Hi folks, I have a numbers from 1-100 and from these nos I have 30 numbers.. From this 30 nos, I have to generate a combination of 6 nos... this 30 numbers will range from 1-100... ( FYI: This is not a lottery game - just kidding) ... I am trying out this in a shell script.. any ideas ?

## Find filenames with three digits and add zeros to make five digits

Hello all! I've looked all over the internet and this site and have come up a loss with an easy way to make a bash script to do what I want to do. I have a file with a naming convention as follows: 2012-01-18 string of words here 123.jpg 2012-01-18 string of words here 1234.jpg 2012-01-18...

## Combination of numbers

Hello Group, I have a file of data that contain 1 2 3 4 5 I request you help with a shell script for generate all posible combination of these numbers with the following output: Example: 1 + 2 + 3 + 4 + 5 = 2 + 2 + 3 + 4 + 5 = 3 + 2 + 3 + 4 + 5 = Thanks in advance. Carlos

## Escape and combination

Hi I have 2 files like: file1 a 12 b 1 a 3 file2 a 9 c 0 a 8 and i would like to get a 12 a 9 a 3 a 8 i can do it with grep and paste with 3 lines. I tried to combine using:

## help: single digits inflated to 2 digits

Hi Folks Probably an easy one here but how do I get a sequence to get used as mentioned. For example in the following I want to automatically create files that have a 2 digit number at the end of their names: m@pyhead:~\$ for x in \$(seq 00 10); do touch file_\$x; done m@pyhead:~\$ ls file*...

## combination of two commands

I want to show a output like this Lee Ballancore PID TTY TIME CMD 31799 pts/3 00:00:00 vim 31866 pts/3 00:00:00 vim 2495 pts/7 00:00:00 vim 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps Alistairr Rutherford PID TTY TIME CMD 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps ...

## Combination Of commands

Hello All, I just wanted to know what are the different ways of using commands in combination. The most common one which i know is using pipes. Also grouping is also done like ( ls; date) where output of both the commands is displayed. Are there any other ways of combining various...

## Partition combination

Hi all I've got MacOSX server which is a UNIX based system. I've got 2 partiontion an I like to make just one partition on he disk without loosing any data on part1. Is there a way to do that kind of thing in UNIX or do I have to format everything and put up the system again? Thanx for reading...