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-4 of 4 results.

A103374 a(1) = a(2) = a(3) = a(4) = a(5) = a(6) = a(7) = 1 and for n>7: a(n) = a(n-6) + a(n-7).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 7, 8, 8, 8, 8, 9, 12, 15, 16, 16, 16, 17, 21, 27, 31, 32, 32, 33, 38, 48, 58, 63, 64, 65, 71, 86, 106, 121, 127, 129, 136, 157, 192, 227, 248, 256, 265, 293, 349, 419, 475, 504, 521, 558, 642, 768, 894, 979, 1025, 1079
Offset: 1

Views

Author

Jonathan Vos Post, Feb 03 2005

Keywords

Comments

k=6 case of the family of sequences whose k=1 case is the Fibonacci sequence A000045, k=2 case is the Padovan sequence A000931 (offset so as to begin 1,1,1), k=3 case is A079398 (offset so as to begin 1,1,1,1), k=4 case is A103372 and k=5 case is A103373.
The general case for integer k>1 is defined: a(1) = a(2) = ... = a(k+1) and for n>(k+1) a(n) = a(n-k) + a(n-[k+1]).
For this k=6 case, the ratio of successive terms a(n)/a(n-1) approaches the unique positive root of the characteristic polynomial: x^7 - x - 1 = 0. This is the real constant 1.1127756842787... (see A230160).
The sequence of prime values in this k=6 case is A103384; the sequence of semiprime values in this k=6 case is A103394.

Examples

			a(32) = 17 because a(32) = a(32-6) + a(32-7) = a(26) + a(25) = 9 + 8 = 17.
		

References

  • Zanten, A. J. van, "The golden ratio in the arts of painting, building and mathematics", Nieuw Archief voor Wiskunde, 4 (17) (1999) 229-245.

Crossrefs

Programs

  • Mathematica
    k = 6; Do[a[n] = 1, {n, k + 1}]; a[n_] := a[n] = a[n - k] + a[n - k - 1]; Array[a, 70]
    RecurrenceTable[{a[n] == a[n - 6] + a[n - 7], a[1] == a[2] == a[3] == a[4] == a[5] == a[6] == a[7] == 1}, a, {n, 70}] (* or *)
    Rest@ CoefficientList[Series[-x (1 + x) (1 + x + x^2) (x^2 - x + 1)/(-1 + x^6 + x^7), {x, 0, 70}], x] (* Michael De Vlieger, Oct 03 2016 *)
    LinearRecurrence[{0,0,0,0,0,1,1},{1,1,1,1,1,1,1},80] (* Harvey P. Dale, Sep 02 2024 *)
  • PARI
    a(n)=([0,1,0,0,0,0,0; 0,0,1,0,0,0,0; 0,0,0,1,0,0,0; 0,0,0,0,1,0,0; 0,0,0,0,0,1,0; 0,0,0,0,0,0,1; 1,1,0,0,0,0,0]^(n-1)*[1;1;1;1;1;1;1])[1,1] \\ Charles R Greathouse IV, Oct 03 2016
    
  • PARI
    x='x+O('x^50); Vec(x*(1+x)*(1+x+x^2)*(x^2-x+1)/(1-x^6-x^7)) \\ G. C. Greubel, May 01 2017

Formula

G.f.: x*(1+x)*(1+x+x^2)*(x^2-x+1) / ( 1-x^6-x^7 ). - R. J. Mathar, Aug 26 2011

Extensions

Edited by Ray Chandler and Robert G. Wilson v, Feb 06 2005

A230159 Decimal expansion of the positive real solution of the equation x^k-x-1=0. Case k=6.

Original entry on oeis.org

1, 1, 3, 4, 7, 2, 4, 1, 3, 8, 4, 0, 1, 5, 1, 9, 4, 9, 2, 6, 0, 5, 4, 4, 6, 0, 5, 4, 5, 0, 6, 4, 7, 2, 8, 4, 0, 2, 7, 9, 6, 6, 7, 2, 2, 6, 3, 8, 2, 8, 0, 1, 4, 8, 5, 9, 2, 5, 1, 4, 9, 5, 5, 1, 6, 6, 8, 2, 3, 6, 8, 9, 3, 9, 9, 9, 8, 4, 2, 6, 7, 1, 2, 7, 9, 6, 8
Offset: 1

Views

Author

Paolo P. Lava, Oct 11 2013

Keywords

Comments

Also decimal expansion of (1+(1+(1+ ... )^(1/k))^(1/k))^(1/k), with k integer and k<0. Case k=6.

Examples

			1.1347241384015194926054460545064728402796672263828014859...
		

Crossrefs

Programs

  • Maple
    with(numtheory); P:=proc(q,h) local a,n; a:=(q+1)^(1/h);
    for n from q by -1 to 1 do a:=(1+a)^(1/h);od;
    print(evalf(a,1000)); end: P(1000,6);
  • Mathematica
    Root[x^6 - x - 1, 2] // RealDigits[#, 10, 100]& // First (* Jean-François Alcover, Feb 18 2014 *)

A230161 Decimal expansion of the positive real solution of the equation x^k-x-1=0. Case k=8.

Original entry on oeis.org

1, 0, 9, 6, 9, 8, 1, 5, 5, 7, 7, 9, 8, 5, 5, 9, 8, 1, 7, 9, 0, 8, 2, 7, 8, 9, 6, 7, 1, 6, 7, 5, 3, 7, 0, 8, 9, 5, 9, 2, 5, 3, 0, 1, 0, 8, 2, 1, 2, 7, 8, 6, 7, 1, 3, 8, 1, 2, 3, 2, 8, 8, 5, 1, 2, 4, 8, 5, 5, 8, 9, 8, 0, 5, 9, 9, 0, 1, 8, 4, 9, 3, 4, 7, 2, 2, 0
Offset: 1

Views

Author

Paolo P. Lava, Oct 11 2013

Keywords

Comments

Also decimal expansion of (1+(1+(1+ ... )^(1/k))^(1/k))^(1/k), with k integer and k<0. Case k=8.

Examples

			1.0969815577985598179082789671675370895925301082127867138...
		

Crossrefs

Programs

  • Maple
    with(numtheory); P:=proc(q,h) local a,n; a:=(q+1)^(1/h);
    for n from q by -1 to 1 do a:=(1+a)^(1/h);od;
    print(evalf(a,1000)); end: P(1000,8);
  • Mathematica
    Root[x^8 - x - 1, 2] // RealDigits[#, 10, 100]& // First (* Jean-François Alcover, Feb 18 2014 *)

A230154 Decimal expansion of the positive real solution of the equation x^(k+1)+x^k-1=0. Case k=6.

Original entry on oeis.org

8, 9, 8, 6, 5, 3, 7, 1, 2, 6, 2, 8, 6, 9, 9, 2, 9, 3, 2, 6, 0, 8, 7, 5, 7, 2, 2, 0, 4, 6, 8, 0, 5, 8, 8, 6, 2, 6, 0, 4, 4, 8, 2, 2, 0, 0, 9, 3, 4, 3, 9, 6, 9, 6, 6, 8, 5, 5, 3, 1, 5, 5, 6, 5, 4, 7, 3, 2, 5, 8, 4, 7, 0, 1, 7, 2, 1, 9, 7, 8, 2, 4, 6, 8, 7, 6, 8
Offset: 0

Views

Author

Paolo P. Lava, Oct 11 2013

Keywords

Comments

Also decimal expansion of (1+(1+(1+ ... )^(1/k))^(1/k))^(1/k), with k integer and k<0. Case k=-6.

Examples

			0.8986537126286992932608757220468058862604482200934396966...
		

Crossrefs

Programs

  • Maple
    with(numtheory); P:=proc(q,h) local a,n; a:=(q+1)^(1/h);
    for n from q by -1 to 1 do a:=(1+a)^(1/h);od;
    print(evalf(a,1000)); end: P(1000,-6);
  • Mathematica
    RealDigits[x/.FindRoot[x^7+x^6==1,{x,1},WorkingPrecision->120]][[1]] (* Harvey P. Dale, Dec 30 2013 *)

Formula

Equals 1/A230160. - Hugo Pfoertner, Oct 15 2024
Showing 1-4 of 4 results.