The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A214781 a(n) = smallest k>=2 such that n divides Fibonacci(k-1)+2 5

%I #23 May 30 2013 10:13:50

%S 2,4,2,4,5,10,6,0,10,7,0,10,12,22,8,0,16,10,11,28,0,0,9,0,48,40,34,22,

%T 0,34,0,0,0,16,28,10,36,0,18,0,18,0,17,0,34,22,14,0,54,148,16,40,52,

%U 34,0,0,11,0,0,34,28,0,0,0,68,0,21,16

%N a(n) = smallest k>=2 such that n divides Fibonacci(k-1)+2

%C 0 is inserted if no such k exists.

%e n=1 divides F(0)+2=2. n=2 divides F(0)+2=2. n=3 divides F(1)+2=3. n=4 divides F(3)+2=4.

%o (PARI) a(n) = {k = 2; while (((fibonacci(k-1)+2) % n), k++; if (k > 6*n+2 , return(0));); return (k);} \\ _Michel Marcus_, May 30 2013

%Y Cf. A157725, A001177, A214782.

%K nonn

%O 1,1

%A _Art DuPre_, Aug 03 2012

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 May 23 02:40 EDT 2024. Contains 372758 sequences. (Running on oeis4.)