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.

A136759 a(n) = leading digit of n! in base 8.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Crossrefs

Programs

  • Maple
    f:= proc(n) local v; v:= n!; floor(v/8^floor(ilog2(v)/3)) end proc:
    map(f, [$1..100]); # Robert Israel, Jun 07 2018
  • Mathematica
    Array[IntegerDigits[#!, 8][[1]]&, 100, 0] (* Vincenzo Librandi, Jun 07 2018 *)
  • PARI
    a(n) = digits(n!, 8)[1]; \\ Michel Marcus, Jan 27 2015