pairing function for 3 numbers. There are any references about pairing function for 3 numbers in here. you can look below.