OFFSET
1,1
LINKS
Puzzling Stack Exchange, What's the next number in this sequence?
EXAMPLE
a(4) = 9 because the 4th prime is 7 and F(4) is 2. a(4) = 7 + 2 = 9.
MAPLE
with(combinat, fibonacci): for n to 10^3 do print(fibonacci(n - 1) + ithprime(n)) end do; # Reza K Ghazi, May 14 2021
MATHEMATICA
Do[Print[Fibonacci[n - 1] + Prime[n]], {n, 10^3}] (* Reza K Ghazi, May 14, 2021*)
PROG
(PARI) for(n=1, 1e3, print1(fibonacci(n-1)+prime(n)", ")) \\ Reza K Ghazi, May 14 2021
(SageMath)
p = 0
for n in range(1, 10^3+1):
print(fibonacci(n-1) + next_prime(p))
p = next_prime(p) # Reza K Ghazi, May 14 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mark Dowdey (mdowdey(AT)comcast.net), Jan 18 2006
EXTENSIONS
Name corrected by Reza K Ghazi, May 15 2021
STATUS
approved