I use Wolfram Mathematica. Let's set a natural number n >= 3. I want to define W[i] -- pure function. I do something like:
For[i = 3, i <= n, i++, W[[i]] = (1 - #^2)^2 JacobiP[i - 3, 2, 2, #] &; Print[W[[i]]]]
I get something like:
(1-#1^2)^2 JacobiP[i-3,2,2,#1]&
(1-#1^2)^2 JacobiP[i-3,2,2,#1]&
(1-#1^2)^2 JacobiP[i-3,2,2,#1]&
...
How to force Wolfram to understand that I want this concrete i from the definition of the loop? So I mean that I want smth like
(1-#1^2)^2 JacobiP[3-3,2,2,#1]&
(1-#1^2)^2 JacobiP[4-3,2,2,#1]&
...
Thank you! Andrew Bzikadze