OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..40
FORMULA
MATHEMATICA
Join[{0}, Table[Sum[Prime[i], {i, Fibonacci[n]}], {n, 30}]] (* Stefan Steinerberger, Jun 04 2007 *)
PROG
(Magma) [0]cat[(&+[NthPrime(j): j in [1..Fibonacci(n)]]): n in [1..30]]; // G. C. Greubel, Jun 29 2021
(Sage)
@CachedFunction
def A117400(n): return 0 if (n==0) else sum(nth_prime(j) for j in (1..fibonacci(n)))
[A117400(n) for n in (0..40)] # G. C. Greubel, Jun 29 2021
(PARI) a(n) = sum(k=1, fibonacci(n), prime(k)); \\ Michel Marcus, Jun 30 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, Apr 25 2006, Jun 01 2007
EXTENSIONS
More terms from Stefan Steinerberger, Jun 04 2007
Edited by N. J. A. Sloane, May 06 2008, at the suggestion of M. F. Hasler
STATUS
approved