Aug 24, 2011 at 6:44pm UTC
Any multiple of a multiple of 10 will end in zeros. Yours ends in 2.
Aug 24, 2011 at 7:09pm UTC
why are floats so damn inaccurate?
Aug 24, 2011 at 10:21pm UTC
@Null
Further info re: 1754!. From a problem I found on http://www.codechef.com the # of terminating zeros in N! = the # of factors of 5 in N!.
For 1754! the Number of zeroes at the end = 1754/5 + 1754/25 + 1754/125 + 1754/625
= 350 + 70 + 14 + 2 = 436.
Expect the number to end in 436 zeros.
@wtf Hang in there, you'll get it!
Using my BigInt class (from the contest here last November) I get:
1754! = 197926189010501005538179432753260580461080687837386093244192650888193044
83104993781885087202818113141758217913524290130054389296110993761638740562668086
72031988042726293569869396758195522469778435225345119304425832697633115641694705
64381293304484848733495148291976456212394444854482391469358961537755901117325878
18296459849627459353506090190816436768622149143245877010092044525541198101437008
40085596837216739629073938640934217007950434342105036981626207737584801994362163
32263050292414532550118078744934714416138931668864042276417548741915510069523006
89238289694917634254857480292477598617118146209420015426832674824141333871406874
92549503983361352556223082387044506795688239104321264008843384476507522285400737
52184461117961678152221122043263518584863658013928250689774138379740195981844036
97290305095734456302825425424297490396089928965335730526812103146098573107702157
85427017719976782544274935020141394672500919505732689727529031599298955128321713
26253960083637041670738847732892994552925821000133187240439781154791897959712275
93949165652573800863631369880751519155681479325163622535064222024958212870621175
90439304317515743266031498005644908319537246536880185081266031343889190068372728
71560804998517093188544754285883618385586080775618565338425348556077656074480859
74124739026430012766042603940126063334294969408951800845891360188126920571835980
82952800726712622111807070601676933448560485743597927148074846682087776084514013
46857534159678514148349062240303985260422892648407181390646337957528447834208653
63989924190625578167655974198326049157940574049688969089004193589389716090830734
21813100896612913195792618987922512428211652825381178794237342656134741493186233
27743257075982668662589537128985055827525419542351810291196782068605371160089752
99892598378816005948758884516848732853390040677868297719380398400159684539103544
14949366151274275799723879125902342819697102639978601445770895578713003826274190
94854449340672863971524291953484926207930615692959994979550359738075202381503902
27542055961666116335567397505885860681595664464708759869790588566250910283055947
91530902301100662359942278721272019700361790639089677862444224899354853226981734
72984361274533434285935236982110144889616238316727216791254224224801622333143031
69941078370282017550763154939294448124735222025459248459192152338866622222094242
69338269690294001411029563900414423210293857162201951657985438627913097962152657
15681395941839373915035143753481131793443432264532519045167786895907114319237462
01292184718994258818836875617505592808566870904747986422748225938961565059060448
48894526213538331086947835069197391607650926018871984308002287761188793009453037
14466907164226974744141557228596979716771333021638771570077068808281835439416352
79586566948799583204081206405735205957552603718396907735093135159909966208491364
38513681745071916339778970844708854208079894782258096895939047561826015853788307
66632312270227224597154668574680444456093851166660808456131761713198785904486401
33042036507933133070095794241996956705966524579565419900183122902900392875206590
94819368329763452426235961930347693456681636738905842901924392198906203537992459
63194335157208533892660466688187505867684180955751465233492134765629957012978945
63555064586731292996256428087793552467410803796751623176328455748919329968098375
61460238705835057436850559167832652800067828559493836088361708886770178575730793
17064003495153239745887276674229901769274894755798456965869986871728696813409136
42717877619860889917131362661581527423608077008497788947393888299908446015746204
58730738571225971527271983647808337019595991393325237562979963158785560942386383
08799429665701123098730033480679715352336669595181870614059596863688896906374354
69783137327238909818780511672362538336877756625232796700675357521076858873186315
70152403076291967712200927642888075717987131118694140223747970641670962988969783
50766015356295011814776810463481044918665268867653365710135502271287557200054912
11081737694967647877807138342235204593794157730576529153242539457357788859841046
77457268794402025120637077087423324916255561298210485114795360663128922404919465
83248483980793565521994383850297294113334597747646224284552349466515610308646090
32738009475123065021416164689270243374366813187498401308112931643696460069958446
51059163191608133412757827063711410766016061992555235724530579404538249339332058
56309137210379916745291551115214127301185150657566662984843064875806617339169029
81429567350361526982783321369746306387727818096627121448147270649707938784751870
60974057976700004728832000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000
Can anyone check this?
Last edited on Aug 24, 2011 at 11:40pm UTC
Aug 25, 2011 at 1:10am UTC
The value seems correct. I get a number that ends in "6700004728832" followed by many zeroes.
Aug 26, 2011 at 2:41am UTC
Aside:
1754! has 4931 digits, so it is in the 1642
nd -illion (where the 1
st -illion is
million , the 2
nd -illion is
billion , etc.)
Thus, 1754! is approx. 19.8
Duoquadragintasescentimillinillion
(I hope I've extrapolated correctly)
http://en.wikipedia.org/wiki/Names_of_large_numbers
Last edited on Aug 26, 2011 at 2:47am UTC