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

A130856 The digital root (A010888) of the Catalan numbers A000108.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Aug 21 2007

Keywords

Crossrefs

Programs

  • Maple
    A130856 := proc(n) option remember: if(n=0)then return 1:fi: return ((add(procname(k)*procname(n-1-k),k=0..n-1)-1) mod 9) + 1 end: seq(A130856(n),n=0..100); # Nathaniel Johnston, May 05 2011
  • Mathematica
    droot[n_]:=NestWhile[Total[IntegerDigits[#]]&,n,#>9&]; droot/@CatalanNumber[ Range[ 0,100]] (* Harvey P. Dale, Apr 09 2022 *)
  • PARI
    a(n) = (binomial(2*n,n)/(n+1)-1)%9 + 1; \\ Michel Marcus, Nov 28 2022

Extensions

Name corrected by Nathaniel Johnston, May 05 2011

A153509 Period 9: repeat [6, 6, 6, 3, 3, 3, 0, 0, 0].

Original entry on oeis.org

6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3, 0, 0, 0, 6, 6, 6, 3, 3, 3
Offset: 0

Views

Author

Paul Curtz, Dec 28 2008

Keywords

Crossrefs

Cf. A130851.

Programs

Formula

G.f.: 3*(2+x^3)/((1-x)*(1+x^3+x^6)). - R. J. Mathar, Jan 21 2009
a(n) = 3*((3-floor((n+3)/3)) mod 3). - Wesley Ivan Hurt, Apr 27 2020

Extensions

More periods from R. J. Mathar, Jan 21 2009
Showing 1-2 of 2 results.