OFFSET
1,2
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
FORMULA
D(prime(k), k-1) = Sum_{i=0..k-1} (-1)^i*prime(k-i)*binomial(k-1,i). [corrected by Jason Yuen, Nov 13 2024]
EXAMPLE
D(prime(2), 1) = 3 - 2 > 0, so a(1) = 1;
D(prime(3), 2) = 5 - 2*3 + 2 > 0, so a(2) = 2;
D(prime(4), 3) = 7 - 3*5 + 3*3 - 2 < 0;
MATHEMATICA
PROG
(PARI) is(k) = {my(p=primes(k)); sum(i=0, k-1, (-1)^i*p[k-i]*binomial(k-1, i))>0} \\ Jason Yuen, Nov 13 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 05 2015
STATUS
approved