OFFSET
1,2
COMMENTS
Eventually some terms will be negative.
FORMULA
Prime-indexed primes (PIPs) are generated by prime(prime(x)) x = 1, 2, ...
EXAMPLE
For n = 3, the polynomial p(x) = (-2/3)x^3 + 6x^2 - (34/3)x + 9 satisfies p(1) = 3, p(2) = 5, p(3) = 11 and p(4) = 17, so a(3) = 9.
PROG
(PARI) for (i = 2, 50, x = vector(i); y = x; for (j = 1, i, y[j] = prime(prime(j)); x[j] = j); q = polinterpolate(x, y, 0); print(q))
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Cino Hilliard, May 19 2003
EXTENSIONS
More terms from David Wasserman, Sep 23 2004
STATUS
approved