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!)
A245515 a(n) = n*floor(mod((gcd(n, Fibonacci((-1)^n + n))), 1 + n)/n) for n>=2. 1

%I #51 Sep 08 2022 08:46:08

%S 1,2,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,29,0,31,0,

%T 0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,59,0,61,0,0,0,0,

%U 0,0,0,0,0,71,0,0,0,0,0,0,0,79,0,0,0,0,0,0

%N a(n) = n*floor(mod((gcd(n, Fibonacci((-1)^n + n))), 1 + n)/n) for n>=2.

%C Sequence with many prime numbers and zeros.

%C The primes occurring in this sequence are given in A064739. The subsequence of composite numbers starts 1891, 2737, 2834, 4181, 6601, 6721, 8149, 13201, 13981, ... - _Joerg Arndt_, Nov 19 2017

%H Charles R Greathouse IV, <a href="/A245515/b245515.txt">Table of n, a(n) for n = 1..10000</a>

%H José de Jesús Camacho Medina, <a href="http://matematicofresnillense.blogspot.fr/2013/07/una-interesante-formula-generadora-de.html">Table with 140 first nonzero terms of this sequence</a> (Una interesante fórmula generadora de 140 primos).

%F a(n) = n*floor(mod((gcd(n, fibonacci((-1)^n + n))), 1 + n)/n) for n>=1.

%e For n=1, a(1)=1; for n=2, a(2)=2.

%p f:= n -> n*floor(modp((igcd(n, combinat:-fibonacci((-1)^n + n))), 1 + n)/n):

%p seq(f(n), n=1..100); # _Robert Israel_, Jul 25 2014

%t Table[n*Floor[Mod[(GCD[n, Fibonacci[(-1)^n + n]]), 1 + n]/n], {n, 1, 1890}]

%o (PARI) a(n) = n*((gcd(n, fibonacci((-1)^n + n)) % (1 + n))\n); \\ _Michel Marcus_, Jul 25 2014

%o (PARI) a(n)=gcd(n, lift(((Mod([1,1;1,0],n))^(n+(-1)^n))[1,2]))\n*n \\ _Charles R Greathouse IV_, Jul 25 2014

%o (Magma) [n*((Gcd(n, Fibonacci((-1)^n+n)) mod (1+n)) div n): n in [1..100]]; // _Vincenzo Librandi_, Dec 17 2016

%K nonn

%O 1,2

%A _José de Jesús Camacho Medina_, Jul 24 2014

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 05:02 EDT 2024. Contains 371235 sequences. (Running on oeis4.)