cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A113753 a(n) = Fibonacci(n-1) + prime(n).

Original entry on oeis.org

2, 4, 6, 9, 14, 18, 25, 32, 44, 63, 86, 126, 185, 276, 424, 663, 1046, 1658, 2651, 4252, 6838, 11025, 17794, 28746, 46465, 75126, 121496, 196525, 317920, 514342, 832167, 1346400, 2178446, 3524717, 5703036, 9227616, 14930509, 24157980, 39088336
Offset: 1

Views

Author

Mark Dowdey (mdowdey(AT)comcast.net), Jan 18 2006

Keywords

Examples

			a(4) = 9 because the 4th prime is 7 and F(4) is 2. a(4) = 7 + 2 = 9.
		

Crossrefs

Programs

  • 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*)
  • 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

Extensions

Name corrected by Reza K Ghazi, May 15 2021