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.

Showing 1-10 of 47 results. Next

A094808 Numbers of the form Fibonacci(p-1)/p, where p are primes ending in 1 or 9 (i.e., A045468).

Original entry on oeis.org

5, 136, 10959, 26840, 2495955, 10021808981, 25377192720, 2681584376185, 113220181313816, 12360536835574179, 3507176714646157575, 152669979363491409744, 5030798638073511770858765, 222738121208382108330061096, 25556388788416277561281235799, 66021302497942406531221230200
Offset: 1

Views

Author

Lekraj Beedassy, Jun 11 2004

Keywords

Crossrefs

Programs

  • Mathematica
    s = Select[ Prime[ Range[35]], Mod[ #, 10] == 1 || Mod[ #, 10] == 9 &]; Fibonacci[s - 1]/s (* Robert G. Wilson v, Jun 15 2004 *)
    Fibonacci[#-1]/#&/@Select[Prime[Range[40]],MemberQ[{1,9},Mod[#,10]]&] (* Harvey P. Dale, Jul 20 2025 *)
  • PARI
    forprime(p=11, 10^3, if((p+3)%5<2, next); print1(fibonacci(p-1)/p, ", ")); \\ Jinyuan Wang, Feb 24 2020

Extensions

More terms from Robert G. Wilson v, Jun 15 2004
More terms from Jinyuan Wang, Feb 24 2020

A336403 Multiplicative closure of A045468: numbers which are the product of zero or more primes which are 1 or 4 mod 5.

Original entry on oeis.org

1, 11, 19, 29, 31, 41, 59, 61, 71, 79, 89, 101, 109, 121, 131, 139, 149, 151, 179, 181, 191, 199, 209, 211, 229, 239, 241, 251, 269, 271, 281, 311, 319, 331, 341, 349, 359, 361, 379, 389, 401, 409, 419, 421, 431, 439, 449, 451, 461, 479, 491, 499, 509
Offset: 1

Views

Author

David Friend, Jul 20 2020

Keywords

Comments

The subsequence of A089270 which excludes terms divisible by 5.

Crossrefs

Cf. A031363 and its subset A089270 and its subset A038872 and its subset A045468.

Formula

Numbers of the form r^2 + 3*r*s + s^2 not divisible by 5, where r and s are relatively prime and r > s >= 0.

Extensions

New name and general cleanup by Charles R Greathouse IV, Sep 09 2022

A003463 a(n) = (5^n - 1)/4.

Original entry on oeis.org

0, 1, 6, 31, 156, 781, 3906, 19531, 97656, 488281, 2441406, 12207031, 61035156, 305175781, 1525878906, 7629394531, 38146972656, 190734863281, 953674316406, 4768371582031, 23841857910156, 119209289550781, 596046447753906, 2980232238769531
Offset: 0

Views

Author

Keywords

Comments

5^a(n) is the highest power of 5 dividing (5^n)!. - Benoit Cloitre, Feb 04 2002
n such that A002294(n) is not divisible by 5. - Benoit Cloitre, Jan 14 2003
Without leading zero, i.e., sequence {a(n+1) = (5*5^n-1)/4}, this is the binomial transform of A003947. - Paul Barry, May 19 2003 [Edited by M. F. Hasler, Oct 31 2014]
Numbers n such that a(n) is prime are listed in A004061(n) = {3, 7, 11, 13, 47, 127, 149, 181, 619, 929, ...}. Corresponding primes a(n) are listed in A086122(n) = {31, 19531, 12207031, 305175781, 177635683940025046467781066894531, ...}. 3^(m+1) divides a(2*3^m*k). 31 divides a(3k). 13 divides a(4k). 11 divides a(5k). 71 divides a(5k). 7 divides a(6k). 19531 divides a(7k). 313 divides a(8k). 19 divides a(9k). 829 divides a(9k). 71 divides a(10k). 521 divides a(10k). 17 divides a(16k). p divides a(p-1) for all prime p except p = {2,5}. p^(m+1) divides a(p^m*(p-1)) for all prime p except p = {2,5}. p divides a((p-1)/2) for prime p = {11, 19, 29, 31, 41, 59, 61, 71, 79, 89, 101, 109, ...} = A045468, Primes congruent to {1, 4} mod 5. p divides a((p-1)/3) for prime p = {13, 67, 127, 163, 181, 199, 211, 241, 313, 337, 367, 379, 409, 457, ...}. p divides a((p-1)/4) for prime p = {101, 109, 149, 181, 269, 389, 401, 409, 449, 461, 521, 541, ...} = A107219, Primes of the form x^2+100y^2. p divides a((p-1)/5) for prime p = {31, 191, 251, 271, 601, 641, 761, 1091, 1861, ...}. p divides a((p-1)/6) for prime p = {181, 199, 211, 241, 379, 409, 631, 691, 739, 769, 1039, ...}. - Alexander Adamchuk, Jan 23 2007
Starting with 1 = convolution square of A026375: (1, 3, 11, 45, 195, 873, ...). - Gary W. Adamson, May 17 2009
Let A be the Hessenberg matrix of order n, defined by: A[1,j]=1, A[i,i]:=5, (i>1), A[i,i-1]=-1, and A[i,j]=0 otherwise. Then, for n>=1, a(n)=det(A). - Milan Janjic, Jan 27 2010
This is the sequence A(0,1;4,5;2) = A(0,1;6,-5;0) of the family of sequences [a,b:c,d:k] considered by Gary Detlefs, and treated as A(a,b;c,d;k) in the W. Lang link given below. - Wolfdieter Lang, Oct 18 2010
It is the Lucas sequence U(6,5). - Felix P. Muga II, Mar 21 2014
a(2*n+1) is the sum of the numerators and denominators of the reduced fractions 0 < b/5^n < 1 plus 1, with b < 5^n. - J. M. Bergot, Jul 24 2015
The sequence multiplied by 10 (0, 10, 60, 310, 1560, ...) is the maximum number of coins which can be decided by n weighings on 2 balances in the counterfeit coin problem with undecided under/overweight. [Halbeisen and Hungerbuhler, Disc. Math. 147 (1995) 139 Theorem 1]. - R. J. Mathar, Sep 10 2015
Order of the rank-n projective geometry PG(n-1,5) over the finite field GF(5). - Anthony Hernandez, Oct 05 2016
Number of zeros in the substitution system {0 -> 11100, 1 -> 11110} at step n from initial string "1" (1 -> 11110 -> 1111011110111101111011100 -> ...). - Ilya Gutkovskiy, Apr 10 2017
a(n) is the numerator of Sum_{k=1..n} 1/5^k, which approaches a limit of 1/4. The denominators are 5^n. In general, Sum_{k=1..n} 1/x^k approaches a limit of 1/(x-1). It is of interest to note that as x increases, so does the rate of convergence. See Crossrefs for numerators for other values of x which have the general form (x^n-1)/(x-1). - Gary Detlefs, Aug 31 2021

Examples

			Base 5...........decimal
0......................0
1......................1
11.....................6
111...................31
1111.................156
11111................781
111111..............3906
1111111............19531
11111111...........97656
111111111.........488281
1111111111.......2441406
etc. ...............etc.
- _Zerinvary Lajos_, Jan 14 2007
		

References

  • Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 282.

Crossrefs

Programs

Formula

Second binomial transform of A015518; binomial transform of A000302 (preceded by 0). - Paul Barry, Mar 28 2003
a(n) = Sum_{k=1..n} binomial(n,k)*4^(k-1). - Paul Barry, Mar 28 2003
a(n) = (-1)^n times the (i, j)-th element of M^n (for all i and j such that i is not equal to j), where M = ((1, -1, 1, -2), (-1, 1, -2, 1), (1, -2, 1, -1), (-2, 1, -1, 1)). - Simone Severini, Nov 25 2004
a(n) = A125118(n,4) for n>3. - Reinhard Zumkeller, Nov 21 2006
a(n) = ((3+sqrt(4))^n - (3-sqrt(4))^n)/4. - Al Hakanson (hawkuu(AT)gmail.com), Dec 31 2008
a(n) = 6*a(n-1) - 5*a(n-2) n>1, a(0)=0, a(1)=1. - Philippe Deléham, Jan 01 2009
From Wolfdieter Lang, Oct 18 2010: (Start)
O.g.f.: x/((1-5*x)*(1-x)).
a(n) = 4*a(n-1) + 5*a(n-2) + 2, a(0)=0, a(1)=1.
a(n) = 5*a(n-1) + a(n-2) - 5*a(n-3) = 7*a(n-1) - 11*a(n-2) + 5*a(n-3), a(0)=0, a(1)=1, a(2)=6. Observation by G. Detlefs. See the W. Lang comment and link. (End)
a(n) = 5*a(n-1) + 1 with n>0, a(0)=0. - Vincenzo Librandi, Nov 17 2010
a(n) = a(n-1) + A000351(n-1) n>0, a(0)=0. - Felix P. Muga II, Mar 19 2014
a(n) = a(n-1) + 20*a(n-2) + 5 for n > 1, a(0)=0, a(1)=1. - Felix P. Muga II, Mar 19 2014
a(n) = A060458(n)/2^(n+2), for n > 0. - R. J. Cano, Sep 25 2014
From Ilya Gutkovskiy, Oct 05 2016: (Start)
E.g.f.: (exp(4*x) - 1)*exp(x)/4.
Convolution of A000351 and A057427. (End)

A038872 Primes congruent to {0, 1, 4} mod 5.

Original entry on oeis.org

5, 11, 19, 29, 31, 41, 59, 61, 71, 79, 89, 101, 109, 131, 139, 149, 151, 179, 181, 191, 199, 211, 229, 239, 241, 251, 269, 271, 281, 311, 331, 349, 359, 379, 389, 401, 409, 419, 421, 431, 439, 449, 461, 479, 491, 499, 509, 521, 541, 569, 571, 599, 601, 619
Offset: 1

Views

Author

Keywords

Comments

Also odd primes p such that 5 is a square mod p: (5/p) = +1 for p > 5.
Primes of the form x^2 + x*y - y^2 (as well as of the form x^2 + 3*x*y + y^2), both with discriminant = 5 and class number = 1. Binary quadratic forms a*x^2 + b*x*y + c*y^2 have discriminant d = b^2 - 4ac and gcd(a, b, c) = 1. [This was originally a separate entry, submitted by Laura Caballero Fernandez, Lourdes Calvo Moguer, Maria Josefa Cano Marquez, Oscar Jesus Falcon Ganfornina and Sergio Garrido Morales, Jun 06 2008. R. J. Mathar proved on Jul 22 2008 that this coincides with the present sequence.]
Also primes of the form 5x^2 - y^2 (cf. A031363). - N. J. A. Sloane, May 30 2014
Also primes of the form x^2 + 4*x*y - y^2. Every binary quadratic primitive form of discriminant 20 or 5 has proper solutions for positive integers N given in A089270, including the present primes. Proof from computing the corresponding representative parallel primitive forms, which leads to x^2 - 5 == 0 (mod N) or x^2 + x - 1 == 0 (mod N) which have solutions precisely for these positive N values, including these primes. - Wolfdieter Lang, Jun 19 2019
For a Pythagorean triple a, b, c, these primes (and 2) are the possible prime factors of 2a + b, |2a - b|, 2b + a, and 2b - a. - J. Lowell, Nov 05 2011
The prime factors of A028387(n^2+3n+1). - Richard R. Forberg, Dec 12 2014
Except for p = 5, these are primes p that divide Fibonacci(p-1). - Dmitry Kamenetsky, Jul 27 2015
Apart from the first term, these are rational primes that decompose in the field Q[sqrt(5)]. For example, 11 = ((7 + sqrt(5))/2)*((7 - sqrt(5))/2), 19 = ((9 + sqrt(5))/2)*((9 - sqrt(5))/2). - Jianing Song, Nov 23 2018
The possible prime factors of x^2 - x - 1. - Charles R Greathouse IV, Mar 18 2022

References

  • Z. I. Borevich and I. R. Shafarevich, Number Theory.

Crossrefs

Cf. A038872 (d=5); A038873 (d=8); A068228, A141123 (d=12); A038883 (d=13). A038889 (d=17); A141111, A141112 (d=65).
Cf. A003631 (complement with respect to A000040).

Programs

  • GAP
    Filtered(Concatenation([5],Flat(List([1..140],k->[5*k-1,5*k+1]))),IsPrime); # Muniru A Asiru, Nov 24 2018
  • Magma
    [ p: p in PrimesUpTo(700) | p mod 5 in {0,1,4}]; // Vincenzo Librandi, Aug 21 2012
    
  • Maple
    select(isprime, [5, seq(op([5*k-1,5*k+1]),k=1..1000)]); # Robert Israel, Dec 22 2014
  • Mathematica
    Join[{5}, Select[Prime[Range[4, 100]], Mod[#, 5] == 1 || Mod[#, 5] == 4 &]] (* Alonso del Arte, Nov 27 2011 *)
  • PARI
    forprime(p=2,1e3,if(kronecker(5,p)>=0,print1(p", "))) \\ Charles R Greathouse IV, Jun 16 2011
    

Formula

a(n) = A045468(n-1) for n > 1. - Robert Israel, Dec 22 2014
a(n) ~ 2n*log(n). - Charles R Greathouse IV, Nov 29 2016

Extensions

Corrected and extended by Peter K. Pearson, May 29 2005
Edited by N. J. A. Sloane, Jul 28 2008 at the suggestion of R. J. Mathar

A047209 Numbers that are congruent to {1, 4} mod 5.

Original entry on oeis.org

1, 4, 6, 9, 11, 14, 16, 19, 21, 24, 26, 29, 31, 34, 36, 39, 41, 44, 46, 49, 51, 54, 56, 59, 61, 64, 66, 69, 71, 74, 76, 79, 81, 84, 86, 89, 91, 94, 96, 99, 101, 104, 106, 109, 111, 114, 116, 119, 121, 124, 126, 129, 131, 134, 136, 139, 141, 144, 146, 149, 151, 154
Offset: 1

Views

Author

Keywords

Comments

Apart from initial term(s), dimension of the space of weight 2n cuspidal newforms for Gamma_0( 72 ).
Cf. property described by Gary Detlefs in A113801: more generally, these numbers are of the form (2*h*n+(h-4)*(-1)^n-h)/4 (h, n natural numbers), therefore ((2*h*n + (h-4)*(-1)^n - h)/4)^2 - 1 == 0 (mod h); in our case, a(n)^2 - 1 == 0 (mod 5). - Bruno Berselli, Nov 17 2010
The sum of the alternating series (-1)^(n+1)/a(n) from n=1 to infinity is (Pi/5)*cot(Pi/5), that is (1/5)*sqrt(1 + 2/sqrt(5))*Pi. - Jean-François Alcover, May 03 2013
These numbers appear in the product of a Rogers-Ramanujan identity. See A003114 also for references. - Wolfdieter Lang, Oct 29 2016
Let m be a product of any number of terms of this sequence. Then m - 1 or m + 1 is divisible by 5. Closed under multiplication. - David A. Corneth, May 11 2018

Crossrefs

Cf. A005408 (n=1 or 3 mod 4), A007310 (n=1 or 5 mod 6).
Cf. A045468 (primes), A032527 (partial sums).

Programs

Formula

G.f.: (1+3x+x^2)/((1-x)(1-x^2)).
a(n) = floor((5n-2)/2). [corrected by Reinhard Zumkeller, Jul 19 2013]
a(1) = 1, a(n) = 5(n-1) - a(n-1). - Benoit Cloitre, Apr 12 2003
From Bruno Berselli, Nov 17 2010: (Start)
a(n) = (10*n + (-1)^n - 5)/4.
a(n) - a(n-1) - a(n-2) + a(n-3) = 0 for n > 3.
a(n) = a(n-2) + 5 for n > 2.
a(n) = 5*A000217(n-1) + 1 - 2*Sum_{i=1..n-1} a(i) for n > 1.
a(n)^2 = 5*A036666(n) + 1 (cf. also Comments). (End)
a(n) = 5*floor(n/2) + (-1)^(n+1). - Gary Detlefs, Dec 29 2011
E.g.f.: 1 + ((10*x - 5)*exp(x) + exp(-x))/4. - David Lovler, Aug 23 2022
From Amiram Eldar, Nov 22 2024: (Start)
Product_{n>=1} (1 - (-1)^n/a(n)) = phi (A001622).
Product_{n>=2} (1 + (-1)^n/a(n)) = (Pi/5) * cosec(Pi/5) (A352324). (End)

Extensions

Edited by Michael Somos, Sep 22 2002

A090771 Numbers that are congruent to {1, 9} mod 10.

Original entry on oeis.org

1, 9, 11, 19, 21, 29, 31, 39, 41, 49, 51, 59, 61, 69, 71, 79, 81, 89, 91, 99, 101, 109, 111, 119, 121, 129, 131, 139, 141, 149, 151, 159, 161, 169, 171, 179, 181, 189, 191, 199, 201, 209, 211, 219, 221, 229, 231, 239, 241, 249, 251, 259, 261, 269, 271, 279, 281
Offset: 1

Views

Author

Giovanni Teofilatto, Feb 07 2004

Keywords

Comments

Cf. property described by Gary Detlefs in A113801: more generally, these numbers are of the form (2*h*n + (h-4)*(-1)^n - h)/4 (h, n natural numbers), therefore ((2*h*n + (h-4)*(-1)^n - h)/4)^2-1 == 0 (mod h); in this case, a(n)^2 - 1 == 0 (mod 10). - Bruno Berselli, Nov 17 2010

Crossrefs

Cf. A056020 (n = 1 or 8 mod 9), A175885 (n = 1 or 10 mod 11).
Cf. A045468 (primes), A195142 (partial sums).

Programs

Formula

a(n) = sqrt(40*A057569(n) + 1). - Gary Detlefs, Feb 22 2010
From Bruno Berselli, Sep 16 2010 - Nov 17 2010: (Start)
G.f.: x*(1 + 8*x + x^2)/((1 + x)*(1 - x)^2).
a(n) = (10*n + 3*(-1)^n - 5)/2.
a(n) = -a(-n + 1) = a(n-1) + a(n-2) - a(n-3) = a(n-2) + 10.
a(n) = 10*A000217(n-1) + 1 - 2*Sum_{i=1..n-1} a(i) for n > 1. (End)
a(n) = 10*n - a(n-1) - 10 (with a(1) = 1). - Vincenzo Librandi, Nov 16 2010
a(n) = sqrt(10*A132356(n-1) + 1). - Ivan N. Ianakiev, Nov 09 2012
Sum_{n>=1} (-1)^(n+1)/a(n) = (Pi/10)*cot(Pi/10) = A000796 * A019970 / 10 = sqrt(5 + 2*sqrt(5))*Pi/10. - Amiram Eldar, Dec 04 2021
E.g.f.: 1 + ((10*x - 5)*exp(x) + 3*exp(-x))/2. - David Lovler, Sep 03 2022
From Amiram Eldar, Nov 23 2024: (Start)
Product_{n>=1} (1 - (-1)^n/a(n)) = sqrt(phi+2) (A188593).
Product_{n>=2} (1 + (-1)^n/a(n)) = Pi*phi/5 = A094888/10. (End)

Extensions

Edited and extended by Ray Chandler, Feb 10 2004

A005968 Sum of cubes of first n Fibonacci numbers.

Original entry on oeis.org

0, 1, 2, 10, 37, 162, 674, 2871, 12132, 51436, 217811, 922780, 3908764, 16558101, 70140734, 297121734, 1258626537, 5331629710, 22585142414, 95672204155, 405273951280, 1716768021816, 7272346018247, 30806152127640, 130496954475672, 552793970116297, 2341672834801754
Offset: 0

Views

Author

Keywords

Comments

From Alexander Adamchuk, Aug 07 2006: (Start)
The only two prime terms are a(2) = 2 and a(4) = 37.
The prime p divides a(p-1) iff p is in A045468.
The prime p divides a((p-1)/2) iff p is in A047650.
3^4 divides a(p) iff p is in A003628.
3^5 divides a(p) for p = {37,53,109,181,197,269,397,431,541,...}.
3^6 divides a(p) for p = {109,541,...}.
3^7 divides a(p) for p = {557,...}. (End)

References

  • Art Benjamin, Timothy A. Carnes, and Benoit Cloitre, Recounting the Sums of Cubes of Fibonacci Numbers, Congressus Numerantium, Proceedings of the Eleventh International Conference on Fibonacci Numbers and their Applications, (William Webb, ed.), Vol 194, pp. 45-51, 2009.
  • A. T. Benjamin and J. J. Quinn, Proofs that really count: the art of combinatorial proof, M.A.A. 2003, p. 14.
  • A. Brousseau, Fibonacci and Related Number Theoretic Tables. Fibonacci Association, San Jose, CA, 1972, p. 18.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Partial sums of A056570. Cf. A119284 (alternating sum).
Sums of other powers: A000071, A001654, A005969, A098531, A098532, A098533, A128697.

Programs

  • Magma
    [(1/10)*( Fibonacci(3*n+2)-(-1)^(n)*6*Fibonacci(n-1)+5 ): n in [0..30]]; // G. C. Greubel, Jan 17 2018
  • Maple
    with(combinat): l[0] := 0: for i from 1 to 50 do l[i] := l[i-1]+fibonacci(i)^3; printf(`%d,`,l[i]) od: # James Sellers, May 29 2000
    A005968:=(-1+2*z+z**2)/(z-1)/(z**2+4*z-1)/(z**2-z-1); # conjectured by Simon Plouffe in his 1992 dissertation
  • Mathematica
    f[n_]:=(Fibonacci[n]*Fibonacci[n+1]^2+(-1)^(n-1)*Fibonacci[n-1]+1)/2;Table[f[n],{n,0,5!}] (* Vladimir Joseph Stephan Orlovsky, Nov 22 2010 *)
    Accumulate[Fibonacci[Range[0,20]]^3]
    CoefficientList[Series[x*(1-2*x-x^2)/((1-x)*(1+x-x^2)*(1-4*x-x^2)), {x, 0, 50}], x] (* Vincenzo Librandi, Jun 09 2013 *)
  • PARI
    a(n)=(fibonacci(n)*fibonacci(n+1)^2+(-1)^(n-1)*fibonacci(n-1)+1)/2
    
  • PARI
    a(n)=(fibonacci(3*n+2)-(-1)^(n)*6*fibonacci(n-1)+5)/10
    
  • PARI
    a(n)=sum(i=1,n,fibonacci(i)^3)
    

Formula

G.f.: x*(1-2*x-x^2)/((1-x)*(1+x-x^2)*(1-4*x-x^2)). - Ralf Stephan, Apr 23 2004
a(n) = (1/2)*(F(n)*F(n+1)^2 + (-1)^(n-1)*F(n-1) + 1). - Benoit Cloitre, Aug 06 2004
a(n) = Sum_{i=1..n} A000045(i)^3.
a(n) = (1/10)*(F(3*n+2) - (-1)^(n)*6*F(n-1) + 5). - Art Benjamin and Timothy A. Carnes
a(n+5) = 4*a(n+4) + 3*a(n+3) - 9*a(n+2) + 2*a(n+1) + a(n). - Benoit Cloitre, Sep 12 2004

Extensions

More terms from James Sellers, May 29 2000

A064739 Primes p such that Fibonacci(p)-1 is divisible by p.

Original entry on oeis.org

2, 11, 19, 29, 31, 41, 59, 61, 71, 79, 89, 101, 109, 131, 139, 149, 151, 179, 181, 191, 199, 211, 229, 239, 241, 251, 269, 271, 281, 311, 331, 349, 359, 379, 389, 401, 409, 419, 421, 431, 439, 449, 461, 479, 491, 499, 509, 521, 541, 569, 571, 599, 601, 619
Offset: 1

Views

Author

Shane Findley and N. J. A. Sloane, Oct 17 2001

Keywords

Crossrefs

{2} union A045468. Complement is A003631 minus {2}.

Programs

  • Mathematica
    lst={};Do[p=Prime[n];If[Mod[(Fibonacci[p]-1),p]==0,AppendTo[lst,p]],{n,6!}];lst (* Vladimir Joseph Stephan Orlovsky, Apr 03 2009 *)
    Select[Prime[Range[150]],Divisible[Fibonacci[#]-1,#]&] (* Harvey P. Dale, Sep 24 2022 *)
  • PARI
    forprime(p=2,700, if((fibonacci(p)-1)%p==0,print1(p,", ")))
    
  • PARI
    { n=0; for (m=1, 10^9, p=prime(m); if ((fibonacci(p) - 1)%p==0, write("b064739.txt", n++, " ", p); if (n==1000, break)) ) } \\ Harry J. Smith, Sep 24 2009

Formula

Presumably this consists of 2 together with the primes congruent to +-1 mod 5.

Extensions

More terms from Klaus Brockhaus, Oct 18 2001

A023173 Numbers k such that Fibonacci(k) == 1 (mod k).

Original entry on oeis.org

1, 2, 11, 19, 22, 29, 31, 38, 41, 58, 59, 61, 62, 71, 79, 82, 89, 101, 109, 118, 122, 131, 139, 142, 149, 151, 158, 178, 179, 181, 191, 199, 202, 211, 218, 229, 239, 241, 251, 262, 269, 271, 278, 281, 298, 302, 311, 323, 331, 349, 358, 359, 362, 379, 382, 389, 398, 401
Offset: 1

Views

Author

Keywords

Comments

Sequence contains 1, A064739(k) for all k>=0, 2*A064739(k) for k>1. - Benoit Cloitre, Apr 06 2002

Crossrefs

Programs

A032357 Convolution of Catalan numbers and powers of -1.

Original entry on oeis.org

1, 0, 2, 3, 11, 31, 101, 328, 1102, 3760, 13036, 45750, 162262, 580638, 2093802, 7601043, 27756627, 101888163, 375750537, 1391512653, 5172607767, 19293659253, 72188904387, 270870709263, 1019033438061, 3842912963391, 14524440108761
Offset: 0

Views

Author

Keywords

Comments

Absolute value of the alternating sum of Catalan Numbers. - Alexander Adamchuk, Jul 03 2006
Sums of two consecutive terms are a(n-1) + a(n) = 1, 2, 5, 14, 42, ... = A000108(n) (Catalan Numbers). The prime p divides a((p-3)/2) for p = 11, 19, 29, 31, 41, 59, 61, 71, ... = A045468 (Primes congruent to {1, 4} mod 5). Prime p divides a(2*p+1) for p = 5, 11, 19, 29, 31, 41, 59, 61, 71, ... = A038872 (Primes congruent to {0, 1, 4} mod 5). Also odd primes where 5 is a square mod p. - Alexander Adamchuk, Jul 03 2006
Hankel transform is F(2*n+1), where F = A000045. - Paul Barry, Jul 22 2008
Equals INVERTi transform of A000958. - Gary W. Adamson, Apr 10 2009
Inverse binomial transform of A002212. - Philippe Deléham, Sep 17 2009
Number of singleton and plus-decomposable (2143, 2413, 3142)-avoiding permutations with no +bonds (ascents by 1), with offset 1. Equivalently, number of (2143, 2413, 3142)-avoiding permutations that start with 1 or end with n (top entry). E.g., 132 and 213 for n = 3; 1324, 1432, 3214 for n = 4. - Alexander Burstein, May 22 2015

Crossrefs

Programs

  • Maple
    rec:= (n+1)*a(n) +3*(-n+1)*a(n-1) +2*(-2*n+1)*a(n-2)=0:
    A:= gfun:-rectoproc({rec,a(0)=1,a(1)=0},a(n),remember):
    seq(A(n),n=0..50); # Robert Israel, May 22 2015
  • Mathematica
    Table[Sum[(-1)^(k+n)*CatalanNumber[k],{k,0,n}],{n,0,60}] (* Alexander Adamchuk, Jul 03 2006 *)
    Round@Table[(-1)^n/GoldenRatio + CatalanNumber[n + 1] Hypergeometric2F1[1, n + 3/2, n + 3, -4], {n, 0, 20}] (* Round is equivalent to FullSimplify here, but is much faster - Vladimir Reshetnikov, Oct 02 2016 *)
    Table[(CatalanNumber[n] (2 + (n + 1) Hypergeometric2F1[1, -n, 1/2, 5/4]) - (-1)^n)/2, {n, 0, 20}] (* Vladimir Reshetnikov, Oct 03 2016 *)
  • Sage
    def A032357():
        f, c, n = 1, 1, 1
        while True:
            yield f
            n += 1
            c = c * (4*n - 6) // n
            f = c - f
    a = A032357()
    print([next(a) for  in range(27)]) # _Peter Luschny, Nov 30 2016

Formula

G.f.: c(x)/(1 + x), where c(x) is the g.f. for the Catalan numbers A000108.
a(n) = Sum_{k=0..n} (-1)^(n-k)*C(k), where C(k) = A000108(k).
a(n) = ((-1)^(n+1) - binomial(2*(n+1), n+1)*Sum_{k=0..n+1} (-5)^k*binomial(n+1, k)/binomial(2*k, k))/2.
a(n) = C(2*n, n)/(n+1) - a(n-1) = A000108(n) - a(n-1) with a(0) = 1. - Labos Elemer, Apr 26 2003
Conjecture: (n+1)*a(n) + 3*(-n+1)*a(n-1) + 2*(-2*n+1)*a(n-2) = 0. - R. J. Mathar, Nov 30 2012
Conjecture is true since the g.f. satisfies (x - 3*x^2 - 4*x^3)*g'(x) + (1 - 6*x^2)*g(x) = 1. - Robert Israel, May 22 2015
a(n) = (-1)^n/A001622 + A000108(n+1)*hypergeom([1, n + 3/2], [n + 3], -4). - Vladimir Reshetnikov, Oct 02 2016
a(n) ~ 2^(2*n + 2) / (5*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 03 2016
a(n) = (A000108(n) * (2 + (n + 1)*hypergeom([1,-n], [1/2], 5/4)) - (-1)^n)/2. - Vladimir Reshetnikov, Oct 03 2016

Extensions

More terms from Christian G. Bower, Apr 15 1998
More terms from Alexander Adamchuk, Jul 03 2006
Showing 1-10 of 47 results. Next