Page 1 of 1

permutation index

Posted: Mon Sep 28, 2015 3:46 pm
by mfrancime
Hi,

may I ask if someone know the formula on how to get the permutation index?

ex: pick 6 out of 45

index1: 1-2-3-4-5-6
index2: 1-2-3-4-5-7
index3: 1-2-3-4-5-8

let's say i have winning number 11-34-36-41-43-44
index(x)=a+b+c+d+e+f

where
a=11
b=34
c=36
d=41
e=43
f=44

lets say I have a code or function that accept 6 variables then returns the index(x)

Thank you