generate all 7-letter formations, maximum 3 letters repeated.

piter

Active Member
Joined
Jul 22, 2011
Messages
314
Office Version
  1. 2016
Platform
  1. Windows
generate all 7-letter formations, maximum 3 letters repeated.
ex = aaabcde ... bbbcccd, etc.
we have 10 letters = abcdefghij to conbine the formations with 7 letters
please!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
And what would you do with such a list? I've never heard a good reason for enumerating all of those formations.

Consider, starting with the following number of letters, you'd get this number of formations:

ab88
abc1,944
abcd15,552
abcde76,000
abcdef275,400
abcdefg814,968
abcdefgh2,082,304
abcdefghi~5,000,000
abcdefghij~10,000,000

<tbody>
</tbody>

I didn't actually calculate the last two, since it would probably take all day. And even if I did, how would you want them saved? 10 million cells in a worksheet? And if you had such a list, what would you do with it? How would you search it?
 
Upvote 0
hello, thank you,ERIC but we have a problem here, what you have to do, 7 letters in 10 letters, with a maximum of 3 repeated letters. this is not going to give many formations as suggested, should give at most, more than 1000 (thousand formations)
exe = aaabcde ...... bbbccde .... to fghijjj
your formulas are wrong
 
Upvote 0
you have to use the criterion of the repetition of a maximum of 3 letters per formation
example = in the first 7 letters of the 10 possible letters
abcdefgh = all 7 must have at least one training with
ex = aaa ... bbb ... cccc .... ddd .... eee .... fff .. ggg ... hhh ..
Of course there will be two 2 letters repeated,
ex = aabbcce
until the last is = abcdefgh
then the criterion is to have the maximum repetition, 3 letters, it will have to be two obligatorily.
there is! are only 7 letter formations
 
Upvote 0
hello, thank you,ERIC but we have a problem here, what you have to do, 7 letters in 10 letters, with a maximum of 3 repeated letters. this is not going to give many formations as suggested, should give at most, more than 1000 (thousand formations)
exe = aaabcde ...... bbbccde .... to fghijjj
your formulas are wrong
I think your math is way off. How do you get to somewhere around only 1000 formations?

Let's look at this simple analysis. Let's say that you cannot have ANY repetition (that is much more restrictive than your allowing up to 3 letter repetition, so this would return less possibilities than your conditions).
Choosing 7 characters from 10 possibilities yields 604,800 possible values (10*9*8*7*6*5*4)!
So the criteria that you laid out would have much more than that, as you allow limited repetition.
 
Upvote 0
look at another example where it was used 7 repetitions of the letters gave in 100% 36 formations
but my request is in 10 letters and 3 letter repeat
01 to 10 = A
11 to 20 = B
21 to 31 = C
aaaaaaa
aaaaaab
aaaaaac
aaaaabb
aaaaabc
aaaaacc
aaaabbb
aaaabbc
aaaabcc
aaaaccc
aaabbbb
aaabbbc
aaabbcc
aaabccc
aaacccc
aabbbbb
aabbbbc
aabbbcc
aabbccc
aabcccc
aaccccc
abbbbbb
abbbbbc
abbbbcc
abbbccc
abbcccc
abccccc
acccccc
bbbbbbb
bbbbbbc
bbbbbcc
bbbbccc
bbbcccc
bbccccc
bcccccc
ccccccc
 
Upvote 0
we have 10 columns7 letters
ex
ABCDEFGH I Jaaabdfj
01020304050607080910
11121314151617181920
21222324252627282930
we have 10 columns7 letters
ex
ABCDEFGH I Jaaabdfj
01020304050607080910
11121314151617181920
21222324252627282930

<colgroup><col span="10"><col><col></colgroup><tbody>
</tbody>

<colgroup><col span="10"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
see, 10 letters combined by 7 is 120, with letters not repeated
but I want the maximum repetition of three per column
There is something wrong with your formula.
 
Upvote 0
It's clear that we're not understanding what you consider a valid combination. Even after looking at your posts 6 and 7, the logic eludes me. 6 in particular is puzzling. You say that you don't want letters repeated more than 3 times, but almost every item in that list has letters repeated more than that. And it excludes many others, like abcabca.

But even supposing you can explain in a method we can understand, my original question stands: what would you do with such a list? Even if there's only 1000 results, that's still a lot to look through. If you're looking to validate that a combination is valid by checking it against the list, it would be far easier to check the combination against your set of rules.
 
Last edited:
Upvote 0
we have in the matrix of 30 numbers 10 columns with 3 numbers each
the criterion is that the maximum repetition of each letter is 3
I need to please this standards, because I will cross with the standards by line,
so I'll have the defaults per line are 36 and the defaults per columns (which I still have to do)
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top