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!)
A361510 a(n) = smallest k >= 0 such that Fibonacci(k) + Fibonacci(n) is a prime, or -1 if no such k exists. 2
3, 1, 1, 0, 0, 0, 4, 0, 3, 4, 9, 0, 5, 0, 3, 4, 9, 0, 16, 24, 18, 4, 3, 0, 7, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(26) is currently unknown.
LINKS
FORMULA
a(n) = A361902(A000045(n)). - Pontus von Brömssen, Mar 30 2023
MAPLE
See A361509.
MATHEMATICA
a[n_] := Module[{fn = Fibonacci[n], k = 0}, While[! PrimeQ[fn + Fibonacci[k]], k++]; k]; Array[a, 26, 0] (* Amiram Eldar, Mar 30 2023 *)
PROG
(PARI) a(n) = my(k=0, fn=fibonacci(n)); while (!isprime(fn+fibonacci(k)), k++); k; \\ Michel Marcus, Mar 30 2023
CROSSREFS
Sequence in context: A339632 A350879 A115718 * A204181 A204242 A211313
KEYWORD
nonn,more,less
AUTHOR
Jack Braxton, Mar 26 2023
EXTENSIONS
Edited by N. J. A. Sloane, Mar 30 2023
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 August 26 23:42 EDT 2024. Contains 375462 sequences. (Running on oeis4.)