Digit Frequency
   

   

 Math Help -> Basic Principles -> Factorials, Consecutive Integer Products -> Digit Frequency in n! 

How many 1's are there in n!?  This question was asked on NRICH, and while I have no way of calculating the answer in the general case, it's not too hard to come up with an answer for a particular n.  This table gives the digit frequencies for n!, where n ranges from 1 to 500.

Digit Frequency in n!

n0's1's2's3's4's5's6's7's8's9'sTotal
101000000001
200100000001
300000010001
400101000002
511100000003
610100001003
720001100004
820111000005
910110010206
1020110010207
1121010010128
1241001011019
13403000111010
14222000022111
15410210221013
16403000014214
17401112212115
18502211131016
19632121102018
20713120211119
21731031020320
22822010261022
23512122324123
24612540211224
25941323002226
26832233401127
27931122316129
281040342214030
29740332332431
30934214305233
31727113246134
321053701512236
33871232318237
341124342422539
35943732721341
361043432243742
371243535332444
381677131540145
391234532247547
40965345344548
411564536632050
421363365534452
431344927642253
441264355549255
451374545843457
461648138417658
4711106535724760
481446746684362
4914510635657263
501973672955265
51181010634535367
521833457889368
531726973758670
541859863379472
5518565611944674
56174131356911675
572079486747577
581710105854410679
591966875679881
6019898103874682
61263104476611784
6220813846687686
6321985841187788
642012691076312590
65205117810897691
6623587163889693
67228861071169895
6825118978687897
692191410135488799
70207756101191412101
7125687571110185102
722361081031012157104
73351686776795106
74231314107135797108
7525997139991010110
762471211111089812112
7732710711697187114
782511169109810126116
792915810471110149117
802781281314109135119
81279981313814812121
82281351516111111013123
83301091010121212812125
8427151213881391210127
85361314815139759129
8628817101413111389131
87271416131011717810133
88281412818101221813135
89341291261015111018137
9028111010131215121414139
9129128612171719912141
9229138181717815117143
933216171212141112127145
943711111212151610167147
953281915121211151015149
9636979161111151620150
9726171312111113161716152
98356161016914191613154
992815191010141971420156
1003015191010141971420158
10135101418141314121218160
102371291217271661115162
1033616171118151191714164
10433131312161411251812167
10545111416111115151219169
106361119202281515187171
10742191522111714101112173
10841171216171512121914175
1093913212317108151714177
11038182313181312191312179
11139171215182019191012181
11238101717151514221817183
11335262414151417151213185
1144719161919181181812187
1155119181812219121316189
1164423141881619131719191
11747151414251121141418193
11840132421171417132313195
11942161118291712201913197
1204519151615211611