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.

A010697 Period 2: repeat (2,7).

Original entry on oeis.org

2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2
Offset: 0

Views

Author

Keywords

Comments

Continued fraction expansion of A176054. - R. J. Mathar, Mar 08 2012
Decimal expansion of 3/11. - Franklin T. Adams-Watters, Nov 21 2018

Crossrefs

Programs

  • Mathematica
    Table[-5/2*(-1)^n + 9/2, {n, 0, 120}] (* or *)
    Table[7 Mod[n, 2] + 2 Mod[(n + 1), 2], {n, 0, 120}] (* or *)
    CoefficientList[Series[(2 + 7 x)/((1 - x) (1 + x)), {x, 0, 120}], x] (* or *)
    Table[NestWhile[Total@ IntegerDigits@ # &, 2^n + 5^n, IntegerLength@ # > 1 &], {n, 0, 120}] (* Michael De Vlieger, Jul 13 2016 *)
  • PARI
    a(n)=if(n%2,7,2) \\ Charles R Greathouse IV, Oct 07 2015

Formula

G.f.: (2+7x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = A010888(2^n+5^n) = A010888(A074600(n)). - Peter M. Chema, Jul 13 2016
E.g.f.: 7*sinh(x) + 2*cosh(x). - Ilya Gutkovskiy, Jul 14 2016
a(n) = 14/a(n-1). - Nicolas Bělohoubek, Nov 11 2021