NicolasLegnazzi
New member
- Joined
- Aug 26, 2020
- Messages
- 9
Hi! I am a physics student and creating a code I found the following problem.
I have to be able to map a triplet of numbers into an integer that goes from 1 to a certain value.
In this case I have the triplet {n, l, m} and I must make the mapping of these numbers go from 1 to [MATH] \begin{equation} {n+l+m+1 \choose 2} \end{equation} [/MATH].
It is very important not skip numbers and that the numbers are in the range mentioned above.
I hope you can help me (excuse my English, I write in a translator)
Thank you!
I have to be able to map a triplet of numbers into an integer that goes from 1 to a certain value.
In this case I have the triplet {n, l, m} and I must make the mapping of these numbers go from 1 to [MATH] \begin{equation} {n+l+m+1 \choose 2} \end{equation} [/MATH].
It is very important not skip numbers and that the numbers are in the range mentioned above.
I hope you can help me (excuse my English, I write in a translator)
Thank you!