The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136766 a(n) = leading digit of n! in base 16. 14
1, 1, 2, 6, 1, 7, 2, 1, 9, 5, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 5, 8, 12, 1, 2, 3, 6, 13, 1, 3, 6, 13, 1, 4, 9, 1, 3, 8, 1, 3, 10, 1, 4, 14, 2, 7, 1, 4, 14, 2, 9, 2, 7, 1, 5, 1, 4, 1, 4, 1, 3, 15, 4, 1, 4, 1, 5, 1, 6, 1, 7, 2, 10, 3, 15, 4, 1, 7, 2, 11, 3, 1, 6, 2, 11, 4, 1, 7, 2, 1, 5, 2, 12, 4, 1, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
David A. Corneth, Table of n, a(n) for n = 0..9999 (first 1001 terms from Robert G. Wilson v)
EXAMPLE
For n=5, 5! = 5*4*3*2*1 = 120 in base 10, which is 78 in hexadecimal (7*16 + 8*1), so a(5) = 7. - Michael B. Porter, Sep 20 2016
MATHEMATICA
Array[ IntegerDigits[#!, 16][[1]] &, 1001, 0] (* Robert G. Wilson v, Sep 20 2016 *)
Table[Floor[#/16^Floor@ Log[16, #]] &[n!], {n, 0, 98}] (* Michael De Vlieger, Sep 20 2016 *)
PROG
(PARI) a(n) = digits(n!, 16)[1]; \\ Michel Marcus, Jan 27 2015
CROSSREFS
Sequence in context: A019576 A141906 A352125 * A199501 A021386 A201936
KEYWORD
nonn,easy,base
AUTHOR
Carl R. White, Jan 21 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 00:16 EDT 2024. Contains 372549 sequences. (Running on oeis4.)