Hi, I am trying to run the following command in a Maple worksheet
P:= 1979 #(this is the1000-th prime);
for i from 2 to k do
(This is a beginning step to create the Shamir's secret sharing).
However, I get the following output (with explanations)
5000 (This is correct. the value a)
x -> a (This should be the initial function f = 5000)
7005 (This is correct, the value a)
x -> f(x) + a[i] x^(k-1) (one of the main problems, see below)
The main problems are in the last output above:
1. The f(x) is not as it should be: f(x) = a = 5000;
2. The index i isn't changed when it should be i = 2;
3. An error message: too many levels of recursion
The output (I expect) should be: 5000 + 7005x, ...., etc.
Thanks in advanced for any help.