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.

A073094 Final digit of C(2k,k) when not equal to zero.

Original entry on oeis.org

2, 6, 2, 4, 2, 6, 2, 6, 2, 4, 2, 4, 8, 4, 2, 4, 2, 6, 2, 6, 2, 4, 2, 6, 2, 6, 2, 4, 2, 4, 8, 4, 2, 4, 2, 4, 8, 4, 8, 6, 8, 4, 8, 4, 2, 4, 2, 4, 8, 4, 2, 4, 2, 6, 2, 6, 2, 4, 2, 6, 2, 6, 2, 4, 2, 4, 8, 4, 2, 4, 2, 6, 2, 6, 2, 4, 2, 6, 2, 6, 2, 4, 2, 4, 8, 4, 2, 4, 2, 4, 8, 4, 8, 6, 8, 4, 8, 4, 2, 4, 2, 4, 8, 4, 2
Offset: 1

Views

Author

Benoit Cloitre, Aug 18 2002

Keywords

Comments

Sequence contains 2,4,6,8, only.

Programs

  • Maple
    f:= proc(n) local L,r;
      L:= convert(n,base,3);
      r:= 2 &^ numboccur(1,L) mod 5;
      r + 5*(r mod 2)
    end proc:
    map(f, [$1..200]); # Robert Israel, Jun 11 2018
  • Mathematica
    Mod[#,10]&/@Table[Binomial[2n,n],{n,800}]/.(0->Nothing) (* Harvey P. Dale, Apr 14 2018 *)

Formula

a(n) = C(2*A037453(n), A037453) reduced modulo 10.