OFFSET
1,1
COMMENTS
We avoid testing for existence in the script by beginning with x=1.
Sum[i=1 to n+1]F(i) = F(n+3) - 1. See equation (18) of the Weisstein reference. - Jonathan Vos Post, May 05 2005
LINKS
Eric Weisstein's World of Mathematics, Fibonacci Number.
FORMULA
EXAMPLE
a(1) = prime(Fibonacci(0) + Fibonacci(1)) = prime(0+1) = prime(1) = 2.
a(3) = prime(Fibonacci(0) + Fibonacci(1) + Fibonacci(2) + Fibonacci(3)) = prime(4) = 7.
MATHEMATICA
Prime[Accumulate[Fibonacci[Range[40]]]] (* Harvey P. Dale, Aug 14 2023 *)
PROG
(PARI) g(n) = s=0; for(x=1, n, s+=fibonacci(x); print1(prime(s)", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 03 2005
EXTENSIONS
Corrected by T. D. Noe, Nov 15 2006
STATUS
approved