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!)
A202338 Smallest Fibonacci number which when appended to n produces a prime number. 1
1, 3, 1, 1, 3, 1, 1, 3, 377, 1, 3, 13, 1, 89, 1, 3, 3, 1, 1, 89, 1, 3, 3, 1, 1, 3, 1, 1, 3, 89, 1, 21, 1, 13, 3, 13, 3, 3, 89, 1, 233, 1, 1, 3, 13, 1, 21, 13, 1, 3, 13, 1, 233, 1, 21, 3, 1, 13, 3, 1, 3, 21, 1, 1, 3, 1, 3, 3, 1, 1, 21, 13, 3, 3, 1, 1, 3, 233 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(9) = 377 because 9 concatenated with 377 gives the prime 9377.
MAPLE
with(combinat, fibonacci):for n from 1 to 80 do: i:=0:for m from 1 to 2000 while(i=0) do:p:=fibonacci(m): nn:=length(p): x:=n*10^nn+p: if type(x, prime)=true then i:=1: printf(`%d, `, p):else fi:od:od:
MATHEMATICA
f[n_]:=Block[{p=1, a=IntegerDigits[n]}, While[!PrimeQ[FromDigits[Join[a, IntegerDigits[Fibonacci[p]]]]], p++]; Fibonacci[p]]; Table[f[n], {n, 92}]
With[{fibs=Fibonacci[Range[20]], nn=80}, Table[SelectFirst[fibs, PrimeQ[ n*10^ IntegerLength[ #]+ #]&], {n, nn}]] (* Harvey P. Dale, Feb 28 2020 *)
CROSSREFS
Cf. A000045.
Sequence in context: A068695 A110787 A325982 * A139002 A251913 A285012
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Dec 17 2011
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 March 28 13:17 EDT 2024. Contains 371254 sequences. (Running on oeis4.)