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!)
A079714 Number of 2's in n!. 14
0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 3, 2, 0, 3, 1, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 0, 0, 4, 7, 3, 1, 4, 3, 3, 3, 7, 4, 5, 4, 3, 4, 4, 4, 8, 6, 6, 10, 3, 10, 3, 6, 9, 6, 1, 9, 10, 6, 9, 10, 13, 8, 6, 11, 8, 8, 8, 14, 7, 8, 10, 8, 14, 9, 12, 10, 16, 8, 12, 9, 5, 9, 12, 14, 17, 16, 12, 9, 10, 8, 8, 17, 11, 19, 7, 13, 16, 19, 19, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,14
LINKS
FORMULA
a(n) = A034886(n) - (A027869(n) + A079680(n) + A079684(n) + A079688(n) + A079690(n) + A079691(n) + A079692(n) + A079693(n) + A079694(n)). - Reinhard Zumkeller, Jan 27 2008
MAPLE
a:= n-> numboccur(2, convert(n!, base, 10)):
seq(a(n), n=0..101); # Alois P. Heinz, Apr 26 2021
MATHEMATICA
Table[DigitCount[n!, 10, 2], {n, 0, 110}] (* Harvey P. Dale, Jun 20 2021 *)
PROG
(PARI) a(n) = #select(x->(x==2), digits(n!)); \\ Michel Marcus, Apr 26 2021
CROSSREFS
Cf. A316863.
Sequence in context: A273528 A085080 A260308 * A286889 A286368 A190710
KEYWORD
nonn,base,easy
AUTHOR
Cino Hilliard, Jan 31 2003
EXTENSIONS
a(36) ff. corrected by Georg Fischer, Apr 26 2021
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 July 29 22:36 EDT 2024. Contains 374734 sequences. (Running on oeis4.)