The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117400 Sum of the first F(n) primes, where F(n) is the n-th Fibonacci number. 1
0, 2, 2, 5, 10, 28, 77, 238, 712, 2127, 6338, 18650, 54169, 156108, 446276, 1267655, 3580644, 10058726, 28122767, 78293194, 217168960, 600499371, 1655455750, 4551547326, 12483130805, 34161551088, 93304665346, 254374561667 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A007504(A000045(n)). - Michel Marcus, Jun 30 2021
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
Sequence in context: A243338 A245306 A296530 * A005637 A233018 A209100
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 22 06:48 EDT 2024. Contains 372743 sequences. (Running on oeis4.)