I have a problem with chars combination, using Pascal's triangle principle.
The universe is "a b c d e f g h i j k l m n o p q r s t" (20 chars in total), limited to 10 chars per line.
Using Excel I got:
See COMBIN for a description of this Excel function.
So I need a script where it calcs this (real example below):
Last one should be: k,l,m,n,o,p,q,r,s,t
I don't need the "," (commas) is just to make it easier to read for humans (can easily be added manually with UltraEdit after).
I looked for examples, but all them just uses numbers, and this is a bit different as you can see.
Any help would be appreciate.
The universe is "a b c d e f g h i j k l m n o p q r s t" (20 chars in total), limited to 10 chars per line.
Using Excel I got:
Code: Select all
=COMBIN(20;10)
Total: 184756
So I need a script where it calcs this (real example below):
Code: Select all
a,b,c,d,e,f,g,h,i,j
a,b,c,d,e,f,g,h,i,k
a,b,c,d,e,f,g,h,i,l
a,b,c,d,e,f,g,h,i,m
a,b,c,d,e,f,g,h,i,n
a,b,c,d,e,f,g,h,i,o
a,b,c,d,e,f,g,h,i,p
a,b,c,d,e,f,g,h,i,q
a,b,c,d,e,f,g,h,i,r
a,b,c,d,e,f,g,h,i,s
a,b,c,d,e,f,g,h,i,t
a,b,c,d,e,f,g,h,j,k
a,b,c,d,e,f,g,h,j,l
a,b,c,d,e,f,g,h,j,m
a,b,c,d,e,f,g,h,j,n
a,b,c,d,e,f,g,h,j,o
a,b,c,d,e,f,g,h,j,p
a,b,c,d,e,f,g,h,j,q
a,b,c,d,e,f,g,h,j,r
a,b,c,d,e,f,g,h,j,s
a,b,c,d,e,f,g,h,j,t
a,b,c,d,e,f,g,h,k,l
a,b,c,d,e,f,g,h,k,m
a,b,c,d,e,f,g,h,k,n
a,b,c,d,e,f,g,h,k,o
a,b,c,d,e,f,g,h,k,p
a,b,c,d,e,f,g,h,k,q
a,b,c,d,e,f,g,h,k,r
a,b,c,d,e,f,g,h,k,s
a,b,c,d,e,f,g,h,k,t
a,b,c,d,e,f,g,h,k,m
I don't need the "," (commas) is just to make it easier to read for humans (can easily be added manually with UltraEdit after).
I looked for examples, but all them just uses numbers, and this is a bit different as you can see.
Any help would be appreciate.