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 16 results. Next

A153130 Period 6: repeat [1, 2, 4, 8, 7, 5].

Original entry on oeis.org

1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5
Offset: 0

Views

Author

Paul Curtz, Dec 19 2008

Keywords

Comments

Digital root of 2^n.
A regular version of Pitoun's sequence: a(n) = A029898(n+1).
Also obtained from permutations of A141425, A020806, A070366, A153110, A153990, A154127, A154687, or A154815.
This sequence and its (again period 6) repeated differences produce the table:
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, -1, -2, -4, 1, 2, 4, -1, -2, ...
1, 2, -5, -1, -2, 5, 1, 2, -5, -1, -2, ...
1, -7, 4, -1, 7, -4, 1, -7, 4, -1, 7, ...
-8, 11, -5, 8,-11, 5, -8, 11, -5, 8,-11, ...
19,-16, 13,-19, 16,-13, 19,-16, 13,-19, 16, ...
-35, 29,-32, 35,-29, 32,-35, 29,-32, 35,-29, ...
64,-61, 67,-64, 61,-67, 64,-61, 67,-64, 61, ...
If each entry of this table is read modulo 9 we obtain the very regular table:
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, ...
Also the decimal expansion of the constant 125/1001. - R. J. Mathar, Jan 23 2009
Digital root of the powers of any number congruent to 2 mod 9. - Alonso del Arte, Jan 26 2014

References

  • Cecil Balmond, Number 9: The Search for the Sigma Code. Munich, New York: Prestel (1998): 203.

Crossrefs

Cf. digital roots of powers of c mod 9: c = 4, A100402; c = 5, A070366; c = 7, A070403; c = 8, A010689.

Programs

Formula

a(n) + a(n+3) = 9 = A010734(n).
G.f.: (1+x+2x^2+5x^3)/((1-x)(1+x)(1-x+x^2)). - R. J. Mathar, Jan 23 2009
a(n) = A082365(n) mod 9. - Paul Curtz, Mar 31 2009
a(n) = -1/2*cos(Pi*n) - 3*cos(1/3*Pi*n) - 3^(1/2)*sin(1/3*Pi*n) + 9/2. - Leonid Bedratyuk, May 13 2012
a(n) = A010888(A004000(n+1)). - Ivan N. Ianakiev, Nov 27 2014
From Wesley Ivan Hurt, Apr 20 2015: (Start)
a(n) = a(n-6) for n>5.
a(n) = a(n-1) - a(n-3) + a(n-4) for n>3.
a(n) = (2+3*(n-1 mod 3))*(n mod 2) + (1+3*(-n mod 3))*(n-1 mod 2). (End)
a(n) = 2^n mod 9. - Nikita Sadkov, Oct 06 2018
From Stefano Spezia, Mar 20 2025: (Start)
E.g.f.: 4*cosh(x) - exp(x/2)*(3*cos(sqrt(3)*x/2) + sqrt(3)*sin(sqrt(3)*x/2)) + 5*sinh(x).
a(n) = A007953(2*a(n-1)) = A010888(2*a(n-1)). (End)

Extensions

Edited by R. J. Mathar, Apr 09 2009

A070366 a(n) = 5^n mod 9.

Original entry on oeis.org

1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7
Offset: 0

Views

Author

N. J. A. Sloane, May 12 2002

Keywords

Comments

Period 6: repeat [1, 5, 7, 8, 4, 2].
Also the digital root of 5^n. - Cino Hilliard, Dec 31 2004
Digital root of the powers of any number congruent to 5 mod 9. - Alonso del Arte, Jan 26 2014

References

  • Cecil Balmond, Number 9: The Search for the Sigma Code. Munich, New York: Prestel (1998): 203.

Crossrefs

Cf. Digital roots of powers of c mod 9: c = 2, A153130; c = 4, A100402; c = 7, A070403; c = 8, A010689.

Programs

Formula

From R. J. Mathar, Apr 20 2010: (Start)
a(n) = a(n-1) - a(n-3) + a(n-4) for n>3.
G.f.: ( 1+4*x+2*x^2+2*x^3 ) / ( (1-x)*(1+x)*(x^2-x+1) ). (End)
a(n) = 1/2^n (mod 9), n >= 0. - Wolfdieter Lang, Feb 18 2014
a(n) = A010878(A000351(n)). - Michel Marcus, Feb 20 2014
From G. C. Greubel, Mar 05 2016: (Start)
a(n) = a(n-6) for n>5.
E.g.f.: (1/2)*(9*exp(x) - exp(-x) + 2*sqrt(3)*exp(x/2)*sin(sqrt(3)*x/2) - 6*exp(x/2)*cos(sqrt(3)*x/2)). (End)
a(n) = (9 - cos(n*Pi) - 6*cos(n*Pi/3) + 2*sqrt(3)*sin(n*Pi/3))/2. - Wesley Ivan Hurt, Jun 28 2016
a(n) = 2^((-n) mod 6) mod 9. - Joe Slater, Mar 23 2017
a(n) = A007953(5*a(n-1)) = A010888(5*a(n-1)). - Stefano Spezia, Mar 20 2025

A100402 Digital root of 4^n.

Original entry on oeis.org

1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7, 1, 4, 7
Offset: 0

Views

Author

Cino Hilliard, Dec 31 2004

Keywords

Comments

Equals A141725 mod 9. - Paul Curtz, Sep 15 2008
Sequence is the digital root of A016777. - Odimar Fabeny, Sep 13 2010
Digital root of the powers of any number congruent to 4 mod 9. - Alonso del Arte, Jan 26 2014
Period 3: repeat [1, 4, 7]. - Wesley Ivan Hurt, Aug 26 2014
From Timothy L. Tiffin, Dec 02 2023: (Start)
The period 3 digits of this sequence are the same as those of A070403 (digital root of 7^n) but the order is different: [1, 4, 7] vs. [1, 7, 4].
The digits in this sequence appear in the decimal expansions of the following rational numbers: 49/333, 490/333, 4900/333, .... (End)

Examples

			4^2 = 16, digitalroot(16) = 7, the third entry.
		

References

  • Cecil Balmond, Number 9: The Search for the Sigma Code. Munich, New York: Prestel (1998): 203.

Crossrefs

Cf. Digital roots of powers of c mod 9: c = 2, A153130; c = 5, A070366; c = 7, A070403; c = 8, A010689.

Programs

Formula

a(n) = 4^n mod 9. - Zerinvary Lajos, Nov 25 2009
From R. J. Mathar, Apr 13 2010: (Start)
a(n) = a(n-3) for n>2.
G.f.: (1+4*x+7*x^2)/ ((1-x)*(1+x+x^2)). (End)
a(n) = A010888(A000302(n)). - Michel Marcus, Aug 25 2014
a(n) = 3*A010872(n) + 1. - Robert Israel, Aug 25 2014
a(n) = 4 - 3*cos(2*n*Pi/3) - sqrt(3)*sin(2*n*Pi/3). - Wesley Ivan Hurt, Jun 30 2016
a(n) = A153130(2n). - Timothy L. Tiffin, Dec 01 2023
a(n) = A010888(A001022(n)) = A010888(A009966(n)) = A010888(A009975(n)) = A010888(A009984(n)) = A010888(A087752(n)) = A010888(A121013(n)). - Timothy L. Tiffin, Dec 02 2023
a(n) = A010888(4*a(n-1)). - Stefano Spezia, Mar 20 2025

A070403 a(n) = 7^n mod 9.

Original entry on oeis.org

1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4, 1, 7, 4
Offset: 0

Views

Author

N. J. A. Sloane, May 12 2002

Keywords

Comments

Also the digital root of 7^n. If we convert this to a repeating decimal 0.174174..., we get the rational number 58/333. - Cino Hilliard, Dec 31 2004
A141722 (1, 25, 121, 505, 2041, 8185) mod 9. Note A141722 = 10*A000975(2n) + A000975(2n+1). - Paul Curtz, Sep 15 2008
Digital root of the powers of any number congruent to 7 mod 9. - Alonso del Arte, Jan 26 2014

References

  • Cecil Balmond, Number 9: The Search for the Sigma Code. Munich, New York: Prestel (1998): 203.

Crossrefs

Cf. Digital roots of powers of c mod 9: c = 2, A153130; c = 4, A100402; c = 5, A070366; c = 8, A010689.

Programs

Formula

From R. J. Mathar, Feb 23 2009: (Start)
G.f.: (1+7*x+4*x^2)/((1-x)*(1+x+x^2)).
a(n+1) - a(n) = 3*A099837(n+3).
a(n) = 4 - 3*A049347(n). (End)
a(n) = a(n-3) for n>3. - G. C. Greubel, Mar 19 2016
a(n) = 4-2*sqrt(3)*sin((2*n+2)*Pi/3). - Wesley Ivan Hurt, Jun 09 2016
a(n) = A010888(7*a(n-1)). - Stefano Spezia, Mar 20 2025

A154811 a(n) = Fibonacci(2*n+1) mod 9.

Original entry on oeis.org

1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1, 1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1, 1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1, 1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1, 1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1, 1, 2, 5, 4, 7, 8, 8, 7, 4, 5, 2, 1
Offset: 0

Views

Author

Paul Curtz, Jan 15 2009

Keywords

Comments

Periodic with period length 12.

Crossrefs

Programs

Formula

a(n) = A001519(n+1) mod 9 = A122367(n) mod 9 = |A099496(n)| mod 9.
From R. J. Mathar, Apr 10 2009: (Start)
a(n) = a(n-1) - a(n-6) + a(n-7).
G.f.: -(1 + x + 3*x^2 - x^3 + 3*x^4 + x^5 + x^6)/((x - 1)*(x^2 + 1)*(x^4 - x^2 + 1)). (End)

Extensions

Edited by R. J. Mathar, Jan 23 2009
Typo in A-number in first formula corrected by R. J. Mathar, Feb 23 2009

A274406 Numbers m such that 9 divides m*(m + 1).

Original entry on oeis.org

0, 8, 9, 17, 18, 26, 27, 35, 36, 44, 45, 53, 54, 62, 63, 71, 72, 80, 81, 89, 90, 98, 99, 107, 108, 116, 117, 125, 126, 134, 135, 143, 144, 152, 153, 161, 162, 170, 171, 179, 180, 188, 189, 197, 198, 206, 207, 215, 216, 224, 225, 233, 234, 242, 243, 251, 252, 260, 261, 269
Offset: 1

Views

Author

Bruno Berselli, Jun 20 2016

Keywords

Comments

Equivalently, numbers congruent to 0 or 8 mod 9.
Terms of A007494 with indices in A047264. Also, terms of A060464 with indices in A047335.

Crossrefs

Cf. A008591 (first bisection), A010689 (first differences), A017257 (second bisection).
Cf. similar sequences in which m*(m+1) is divisible by k: A014601 (k=4), A047208 (k=5), A007494 (k=3 and 6), A047335 (k=7), A047521 (k=8), this sequence (k=9).
Cf. A301451: numbers congruent to {1, 7} mod 9; A193910: numbers congruent to {2, 6} mod 9.

Programs

  • Magma
    [n: n in [0..300] | IsDivisibleBy(n*(n+1),9)];
  • Mathematica
    Select[Range[0, 300], Divisible[# (# + 1), 9] &]
  • PARI
    for(n=0, 300, if(n*(n+1)%9==0, print1(n", ")))
    
  • Sage
    [n for n in range(300) if 9.divides(n*(n+1))]
    

Formula

G.f.: x^2*(8 + x)/((1 + x)*(1 - x)^2).
a(n) = (18*n + 7*(-1)^n - 11)/4. Therefore: a(2*m) = 9*m-1, a(2*m+1) = 9*m. It follows that a(j)+a(k) and a(j)*a(k) belong to the sequence if j and k are not both even.
a(n) = -A090570(-n+2).
a(n) = a(n-1) + a(n-2) - a(n-3).
a(2*r+1) + a(2*r+s+1) = a(4*r+s+1) and a(2*r) + a(2*r+2*s+1) = a(4*r+2*s). A particular case provided by these identities: a(n) = a(n - 2*floor(n/6)) + a(2*floor(n/6) + 1).
E.g.f.: 1 + ((9*x - 2)*cosh(x) + 9*(x - 1)*sinh(x))/2. - Stefano Spezia, Apr 24 2021

A040019 Continued fraction for sqrt(24).

Original entry on oeis.org

4, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8
Offset: 0

Views

Author

Keywords

Comments

Decimal expansion of 23/55. - R. J. Mathar, Aug 25 2025

Examples

			4.898979485566356196394568149... = 4 + 1/(1 + 1/(8 + 1/(1 + 1/(8 + ...)))). - _Harry J. Smith_, Jun 03 2009
		

References

  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 276.

Crossrefs

Cf. A010480 (decimal expansion), A010689.

Programs

  • Maple
    Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[24],300] (* Vladimir Joseph Stephan Orlovsky, Mar 05 2011 *)
    PadRight[{4},120,{8,1}] (* Harvey P. Dale, Oct 24 2022 *)
  • PARI
    { allocatemem(932245000); default(realprecision, 21000); x=contfrac(sqrt(24)); for (n=0, 20000, write("b040019.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 03 2009

Formula

From Amiram Eldar, Nov 12 2023: (Start)
Multiplicative with a(2^e) = 8, and a(p^e) = 1 for an odd prime p.
Dirichlet g.f.: zeta(s) * (1 + 7/2^s). (End)
G.f.: (4 + x + 4*x^2)/(1 - x^2). - Stefano Spezia, Jul 26 2025

A283393 a(n) = gcd(n^2-1, n^2+9).

Original entry on oeis.org

1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, 2, 5, 2, 5, 2, 1, 10
Offset: 0

Views

Author

Bruno Berselli, Mar 07 2017

Keywords

Comments

Periodic with period 10.
Similar sequences with formula gcd(n^2-1, n^2+k):
k= 1: 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, ... (A000034)
k= 3: 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, ... (A010685)
k= 5: 1, 6, 3, 2, 3, 6, 1, 6, 3, 2, 3, 6, 1, ... (A129203, start 6)
k= 7: 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, ... (A010689)
k= 9: 1, 10, 1, 2, 5, 2, 5, 2, 1, 10, 1, 10, 1, ... (this sequence)
k=11: 1, 12, 3, 4, 3, 12, 1, 12, 3, 4, 3, 12, 1, ... (A129197, start 12)
Connection between the values of a(n) and the last digit of n:
. if n ends with 0, 2 or 8, then a(n) = 1;
. if n ends with 1 or 9, then a(n) = 10;
. if n ends with 3, 5 or 7, then a(n) = 2;
. if n ends with 4 or 6, then a(n) = 5.
Also, continued fraction expansion of (57 + sqrt(4579))/114.

Crossrefs

Programs

  • Magma
    &cat [[1, 10, 1, 2, 5, 2, 5, 2, 1, 10]^^10];
    
  • Mathematica
    Table[PolynomialGCD[n^2 - 1, n^2 + 9], {n, 0, 100}]
    LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 10, 1, 2, 5, 2, 5, 2, 1, 10}, 100]
  • Maxima
    makelist(gcd(n^2-1, n^2+9), n, 0, 100);
    
  • PARI
    Vec((1 + 10*x + x^2 + 2*x^3 + 5*x^4 + 2*x^5 + 5*x^6 + 2*x^7 + x^8 + 10*x^9)/(1 - x^10) + O(x^100)) \\ Colin Barker, Mar 08 2017
  • Python
    [1, 10, 1, 2, 5, 2, 5, 2, 1, 10]*10
    
  • Sage
    [gcd(n^2-1, n^2+9) for n in range(100)]
    

Formula

G.f.: (1 + 10*x + x^2 + 2*x^3 + 5*x^4 + 2*x^5 + 5*x^6 + 2*x^7 + x^8 + 10*x^9)/(1 - x^10).

A198148 a(n) = n*(n+2)*(9 - 7*(-1)^n)/16.

Original entry on oeis.org

0, 3, 1, 15, 3, 35, 6, 63, 10, 99, 15, 143, 21, 195, 28, 255, 36, 323, 45, 399, 55, 483, 66, 575, 78, 675, 91, 783, 105, 899, 120, 1023, 136, 1155, 153, 1295, 171, 1443, 190, 1599, 210, 1763, 231, 1935, 253, 2115, 276, 2303, 300, 2499, 325
Offset: 0

Views

Author

Paul Curtz, Oct 21 2011

Keywords

Comments

See, in A181318(n), A060819(n)*A060819(n+p): A060819(n)^2, A064038(n), a(n), A160050(n), A061037(n), A178242(n). The second differences a(n+2)-2*a(n+1)+a(n) = -5, 16, -26, 44, -61, 86, -110, 142, -173, 212, -250, 296, -341, 394, -446, 506, taken modulo 9 are periodic with the palindromic period 4, 7, 1, 8, 2, 5, 7, 7, 7, 5, 2, 8, 1, 7, 4.

Crossrefs

Programs

Formula

a(n) = A060819(n)*A060819(n+2).
a(2n) = n*(n+1)/2 = A000217(n).
a(2n+1) = (2*n+1)*(2*n+3) = A000466(n+1).
a(n) = 3*a(n-2) - 3*a(n-4) + a(n-6), n>5.
a(n+1) - a(n) = (7*(-1)^n *(2*n^2+6*n+3) +18*n +27)/16.
a(n) = A142705(n) / A000034(n+1).
a(n) = A005563(n) / A010689(n+1). - Franklin T. Adams-Watters, Oct 21 2011
G.f. x*(3 +x +6*x^2 -x^4)/(1-x^2)^3. - R. J. Mathar, Oct 25 2011
a(n)*a(n+1) = a(A028552(n)) = A050534(n+2). - Bruno Berselli, Oct 26 2011
a(n) = numerator( binomial((n+2)/2,2) ). - Wesley Ivan Hurt, Oct 16 2013
E.g.f.: x*((24+x)*cosh(x) + (3+8*x)*sinh(x))/8. - G. C. Greubel, Sep 20 2018
Sum_{n>=1} 1/a(n) = 5/2. - Amiram Eldar, Aug 12 2022

A259713 a(n) = 3*2^n - 2*(-1)^n.

Original entry on oeis.org

1, 8, 10, 26, 46, 98, 190, 386, 766, 1538, 3070, 6146, 12286, 24578, 49150, 98306, 196606, 393218, 786430, 1572866, 3145726, 6291458, 12582910, 25165826, 50331646, 100663298, 201326590, 402653186, 805306366, 1610612738, 3221225470, 6442450946, 12884901886
Offset: 0

Views

Author

Paul Curtz, Jul 03 2015

Keywords

Comments

Inverse binomial transform of 3^n, with 3 (second term) excluded.
a(n) mod 9 gives A010689.

Crossrefs

Programs

  • Magma
    [3*2^n-2*(-1)^n: n in [0..40]]; // Vincenzo Librandi, Jul 04 2015
  • Mathematica
    Table[3 2^n - 2 (-1)^n, {n, 0, 50}] (* Vincenzo Librandi, Jul 04 2015 *)
    LinearRecurrence[{1,2},{1,8},40] (* Harvey P. Dale, Aug 19 2020 *)
  • PARI
    Vec(-(7*x+1)/((x+1)*(2*x-1)) + O(x^100)) \\ Colin Barker, Jul 03 2015
    

Formula

a(n) = a(n-1) + 2*a(n-2) for n>1, a(0)=1, a(1)=8.
a(n) = 2*a(n-1) - 6*(-1)^n for n>0, a(0)=1.
a(4n+2) = 10*A182460(n); a(2n) = A096045(n), a(2n+1) = A140788(n).
a(n) = 3*A014551(n+1) - A201630(n).
a(n+2) - a(n) = a(n) + a(n+1) = A005010(n).
G.f.: -(7*x+1) / ((x+1)*(2*x-1)). - Colin Barker, Jul 03 2015

Extensions

Typo in data fixed by Colin Barker, Jul 03 2015
Showing 1-10 of 16 results. Next