PC Review


Reply
Thread Tools Rate Thread

Combinations Sequence

 
 
Paul Black
Guest
Posts: n/a
 
      23rd Apr 2008
Hi,

I would like to be able to list all the sequences of numbers using six
criteria.
The easiest way to explain it would be to say there are six jars, with
each jar containing anything from 1 to 10 counters.
Ideally I would like a list of all the sequences. So for example ...

10 09 07 03 02 05
10 08 07 05 01 09
01 03 08 10 04 10

... etc.

If it helps, I could put the actual counters that are in each jar in
cells A1:F1.
I know that the list will be quite long depending of the number of
counters in each jar.
The first combination would go in cells A3:F3, the second in cells
A4:F4 etc, etc.

Thanks in Advance.
All the Best
Paul
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      23rd Apr 2008
Can there be repeats??

is:

10 09 07 03 09 05

a valid sequence??
--
Gary''s Student - gsnu2007h


"Paul Black" wrote:

> Hi,
>
> I would like to be able to list all the sequences of numbers using six
> criteria.
> The easiest way to explain it would be to say there are six jars, with
> each jar containing anything from 1 to 10 counters.
> Ideally I would like a list of all the sequences. So for example ...
>
> 10 09 07 03 02 05
> 10 08 07 05 01 09
> 01 03 08 10 04 10
>
> ... etc.
>
> If it helps, I could put the actual counters that are in each jar in
> cells A1:F1.
> I know that the list will be quite long depending of the number of
> counters in each jar.
> The first combination would go in cells A3:F3, the second in cells
> A4:F4 etc, etc.
>
> Thanks in Advance.
> All the Best
> Paul
>

 
Reply With Quote
 
James Snell
Guest
Posts: n/a
 
      23rd Apr 2008
It's do-able, but anyone programming would need to know what rules you're
working to... A few of my initial questions -

Do the numbers need to be randomized as they appear in your post?

Can a number appear twice in a set (ie 10 10 09 08 07 06)?

Is [10 09 08 07 06 05] the same as [05 06 07 08 09 10]?

You're generating more data there than excel (2003 + previous at least) can
hold in one column. Are you using excel 2007 or do you need multiple sets?

"Paul Black" wrote:

> Hi,
>
> I would like to be able to list all the sequences of numbers using six
> criteria.
> The easiest way to explain it would be to say there are six jars, with
> each jar containing anything from 1 to 10 counters.
> Ideally I would like a list of all the sequences. So for example ...
>
> 10 09 07 03 02 05
> 10 08 07 05 01 09
> 01 03 08 10 04 10
>
> ... etc.
>
> If it helps, I could put the actual counters that are in each jar in
> cells A1:F1.
> I know that the list will be quite long depending of the number of
> counters in each jar.
> The first combination would go in cells A3:F3, the second in cells
> A4:F4 etc, etc.
>
> Thanks in Advance.
> All the Best
> Paul
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      23rd Apr 2008
If each of the 6 pots contained the numbers 1 - 10 then perming 6 from 60
gives > 36 billion permutations and I'm sure you don't that. Please clarify.

Mike

"Paul Black" wrote:

> Hi,
>
> I would like to be able to list all the sequences of numbers using six
> criteria.
> The easiest way to explain it would be to say there are six jars, with
> each jar containing anything from 1 to 10 counters.
> Ideally I would like a list of all the sequences. So for example ...
>
> 10 09 07 03 02 05
> 10 08 07 05 01 09
> 01 03 08 10 04 10
>
> ... etc.
>
> If it helps, I could put the actual counters that are in each jar in
> cells A1:F1.
> I know that the list will be quite long depending of the number of
> counters in each jar.
> The first combination would go in cells A3:F3, the second in cells
> A4:F4 etc, etc.
>
> Thanks in Advance.
> All the Best
> Paul
>

 
Reply With Quote
 
Paul Black
Guest
Posts: n/a
 
      23rd Apr 2008
Thanks everyone for the replies.

Gary''s Student,
Yes, 10 09 07 03 09 05 is a valid sequence of numbers.
All of the numbers in the six sets could possibly be the same to start
with, i.e. 10 10 10 10 10 10.
I am only interested in the combinations and not the permutations.

Thanks in Advance.
All the Best.
Paul

On Apr 23, 10:34*am, Gary''s Student
<GarysStud...@discussions.microsoft.com> wrote:
> Can there be repeats??
>
> is:
>
> 10 09 07 03 09 05
>
> a valid sequence??
> --
> Gary''s Student - gsnu2007h
>
>
>
> "Paul Black" wrote:
> > Hi,

>
> > I would like to be able to list all the sequences of numbers using six
> > criteria.
> > The easiest way to explain it would be to say there are six jars, with
> > each jar containing anything from 1 to 10 counters.
> > Ideally I would like a list of all the sequences. So for example ...

>
> > 10 09 07 03 02 05
> > 10 08 07 05 01 09
> > 01 03 08 10 04 10

>
> > ... etc.

>
> > If it helps, I could put the actual counters that are in each jar in
> > cells A1:F1.
> > I know that the list will be quite long depending of the number of
> > counters in each jar.
> > The first combination would go in cells A3:F3, the second in cells
> > A4:F4 etc, etc.

>
> > Thanks in Advance.
> > All the Best
> > Paul- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      23rd Apr 2008
Run this macro. It will make a CSV file that can be imported into Excel:

Sub CreateAfile()
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\combins.csv", True)
For i = 1 To 10
For j = 1 To 10
For k = 1 To 10
For l = 1 To 10
For m = 1 To 10
For n = 1 To 10
v = i & "," & j & "," & k & "," & l & "," & m & "," & n
a.WriteLine (v)
Next
Next
Next
Next
Next
Next
a.Close
End Sub

--
Gary''s Student - gsnu200781


"Paul Black" wrote:

> Hi,
>
> I would like to be able to list all the sequences of numbers using six
> criteria.
> The easiest way to explain it would be to say there are six jars, with
> each jar containing anything from 1 to 10 counters.
> Ideally I would like a list of all the sequences. So for example ...
>
> 10 09 07 03 02 05
> 10 08 07 05 01 09
> 01 03 08 10 04 10
>
> ... etc.
>
> If it helps, I could put the actual counters that are in each jar in
> cells A1:F1.
> I know that the list will be quite long depending of the number of
> counters in each jar.
> The first combination would go in cells A3:F3, the second in cells
> A4:F4 etc, etc.
>
> Thanks in Advance.
> All the Best
> Paul
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Follow a continuously looped sequence with another slide sequence Tom Grillot Microsoft Powerpoint 2 3rd May 2009 08:42 PM
TreeView: Sort Sequence = Load Sequence? (PeteCresswell) Microsoft Access 4 7th Sep 2006 07:07 PM
how to loop an animated sequence in a slide (sequence consists of. =?Utf-8?B?UFM=?= Microsoft Powerpoint 2 17th Jan 2005 07:47 PM
Creating a numeric sequence within a date sequence =?Utf-8?B?SmVyZW15IEtpbmc=?= Microsoft Access Queries 3 1st Nov 2004 12:47 PM
Re: Combinations in VB.net? Lee Microsoft VB .NET 0 6th Aug 2003 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 PM.