login
A247380
First differences of A117495.
2
3, 7, 11, 23, 21, 37, 31, 51, 77, 49, 97, 85, 67, 99, 137, 149, 93, 169, 143, 111, 199, 167, 221, 281, 197, 153, 211, 163, 225, 533, 251, 323, 203, 479, 219, 367, 379, 315, 401, 413, 261, 601, 277, 369, 287, 751, 775, 415, 325, 429, 539, 343, 771, 575, 587, 599
OFFSET
1,1
LINKS
FORMULA
a(n) = A117495(n+1) - A117495(n).
MAPLE
with(numtheory):
a:= n-> ithprime(n+1)*n-ithprime(n)*(n-1):
seq(a(n), n=1..60); # Alois P. Heinz, Sep 15 2014
PROG
(PARI) a(n)=my(p=prime(n++)); p+n*(nextprime(p+1)-p) \\ Charles R Greathouse IV, Sep 15 2014
CROSSREFS
Sequence in context: A028831 A244572 A137516 * A187265 A187266 A187267
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Sep 15 2014
EXTENSIONS
More terms from Alois P. Heinz, Sep 15 2014
STATUS
approved