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-10 of 13 results. Next

A136754 Leading digit of n! in base 3.

Original entry on oeis.org

1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 0

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 2 as 10! = 20211100210000_3 which has leading digit 2. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

  • Mathematica
    Table[First[IntegerDigits[n!,3]],{n,0,87}] (* Stefano Spezia, Aug 25 2022 *)
  • PARI
    a(n, {b = 3}) = my(f = n!); f \ b^logint(f, b) \\ David A. Corneth, Jan 10 2021

Extensions

Missing a(0)=1 inserted by David A. Corneth, Jan 10 2021

A136758 a(n) = leading digit of n! in base 7.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 4 as 10! = 42562410_7 which has leading digit 4. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

A136760 a(n) = leading digit of n! in base 9.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 6 as 10! = 6740700_9 which has leading digit 6. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

A136761 a(n) = leading digit of n! in base 11.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 2 as 10! = 20594010_11 which has leading digit 2. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

A136762 Leading digit of n! in base 12.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_]:=First[IntegerDigits[n!,12]]; lst={};Do[AppendTo[lst,f[n]],{n,0,2*5!}];lst (* Vladimir Joseph Stephan Orlovsky, Jun 14 2009 *)
    a136762[n_Integer] := First[Select[IntegerDigits[n!, 12], # > 0 &]]; a136762 /@ Range[0, 144] (* Michael De Vlieger, Aug 13 2014 *)

A136763 a(n) = leading digit of n! in base 13.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 9 as 10! = 9100926_13 which has leading digit 9. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

  • Mathematica
    Table[First[IntegerDigits[n!,13]],{n,0,100}] (* Harvey P. Dale, Dec 20 2015 *)
  • PARI
    a(n) = digits(n!, 13)[1]; \\ Michel Marcus, Jan 27 2015

A136766 a(n) = leading digit of n! in base 16.

Original entry on oeis.org

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
Offset: 0

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			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
		

Crossrefs

Programs

  • 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 *)
  • PARI
    a(n) = digits(n!, 16)[1]; \\ Michel Marcus, Jan 27 2015

A136755 a(n) = leading digit of n! in base 4.

Original entry on oeis.org

1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 2, 3, 1, 2, 3, 1, 3, 1, 3, 1, 3, 1, 1, 2, 1, 3, 2, 1, 3, 2, 1, 1, 3, 2, 1, 1, 1, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 1, 1, 1, 2, 2, 3, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 2, 3, 1, 1, 2, 1
Offset: 0

Views

Author

Carl R. White, Jan 21 2008

Keywords

Crossrefs

Programs

A136756 Leading digit of n! in base 5.

Original entry on oeis.org

1, 1, 2, 1, 4, 4, 1, 1, 2, 4, 1, 4, 1, 1, 2, 1, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 1, 2, 3, 4, 1, 2, 3, 1, 2, 4, 1, 2, 1, 1, 3, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 4, 2, 1, 2, 1, 4, 2, 1, 3, 2, 1, 3, 2, 1, 4, 2, 1, 1, 3, 2, 1, 1, 3, 2, 1, 1, 4, 2, 2, 1, 1, 4, 3, 2, 2, 1, 1
Offset: 0

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 1 as 10! = 1412110200_5 which has leading digit 1. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

A136757 Leading digit of n! in base 6.

Original entry on oeis.org

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

Views

Author

Carl R. White, Jan 21 2008

Keywords

Examples

			a(10) = 2 as 10! = 205440000_6 which has leading digit 2. - _David A. Corneth_, Jan 15 2021
		

Crossrefs

Programs

  • Mathematica
    Table[First[IntegerDigits[n!,6]],{n,0,100}] (* Harvey P. Dale, Dec 13 2011 *)
Showing 1-10 of 13 results. Next