OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = binomial(prime(n+1)-1, prime(n)-1).
EXAMPLE
For n = 2, a(n) = binomial(prime(n+1)-1, prime(n)-1) = binomial(4,2) = 6.
MATHEMATICA
Binomial[#[[2]]-1, #[[1]]-1]&/@Partition[Prime[Range[40]], 2, 1] (* Harvey P. Dale, Apr 01 2021 *)
PROG
(PARI) a(n) = binomial(prime(n+1)-1, prime(n)-1);
vector(35, n, a(n))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Sep 14 2015
STATUS
approved