(In reply to
solution by Charlie)
Confirmed for base 10
>> factorial(sym(82))
ans =
475364333701284174842138206989404946643813294067993328617160934076743994734899148613007131808479167119360000000000000000000
Problem with base 9, presumably from neglecting some other multiples:
>> a=ans
a =
475364333701284174842138206989404946643813294067993328617160934076743994734899148613007131808479167119360000000000000000000
b =
475364333701284174842138206989404946643813294067993328617160934076743994734899148613007131808479167119360000000000000000000
>> for i=1:25 b=b/sym(9); disp([sym(i) b])
end
[1, 52818259300142686093570911887711660738201477118665925401906770452971554970544349845889681312053240791040000000000000000000]
[2, 5868695477793631788174545765301295637577941902073991711322974494774617218949372205098853479117026754560000000000000000000]
[3, 652077275310403532019393973922366181953104655785999079035886054974957468772152467233205942124114083840000000000000000000]
[4, 72453030590044836891043774880262909105900517309555453226209561663884163196905829692578438013790453760000000000000000000]
[5, 8050336732227204099004863875584767678433390812172828136245506851542684799656203299175382001532272640000000000000000000]
[6, 894481859136356011000540430620529742048154534685869792916167427949187199961800366575042444614696960000000000000000000]
[7, 99386873237372890111171158957836638005350503853985532546240825327687466662422262952782493846077440000000000000000000]
[8, 11042985915263654456796795439759626445038944872665059171804536147520829629158029216975832649564160000000000000000000]
[9, 1226998435029294939644088382195514049448771652518339907978281794168981069906447690775092516618240000000000000000000]
[10, 136333159447699437738232042466168227716530183613148878664253532685442341100716410086121390735360000000000000000000]
[11, 15148128827522159748692449162907580857392242623683208740472614742826926788968490009569043415040000000000000000000]
[12, 1683125425280239972076938795878620095265804735964800971163623860314102976552054445507671490560000000000000000000]
[13, 187013936142248885786326532875402232807311637329422330129291540034900330728006049500852387840000000000000000000]
[14, 20779326238027653976258503652822470311923515258824703347699060003877814525334005500094709760000000000000000000]
[15, 2308814026447517108473167072535830034658168362091633705299895555986423836148222833343856640000000000000000000]
[16, 256534891827501900941463008059536670517574262454625967255543950665158204016469203704872960000000000000000000]
[17, 28503876869722433437940334228837407835286029161625107472838216740573133779607689300541440000000000000000000]
[18, 3167097429969159270882259358759711981698447684625011941426468526730348197734187700060160000000000000000000]
[19, 351899714441017696764695484306634664633160853847223549047385391858927577526020855562240000000000000000000]
[20, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000]
[21, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000/9]
[22, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000/81]
[23, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000/729]
[24, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000/6561]
[25, 39099968271224188529410609367403851625906761538580394338598376873214175280668983951360000000000000000000/59049]
Base 11 doesn't have this problem
>> b=a
b =
475364333701284174842138206989404946643813294067993328617160934076743994734899148613007131808479167119360000000000000000000
>> for i=1:25 b=b/sym(11); disp([sym(i) b])
end
[1, 43214939427389470440194382453582267876710299460726666237923721279703999521354468055727921073498106101760000000000000000000]
[2, 3928630857035406403654034768507478897882754496429696930720338298154909047395860732338901915772555100160000000000000000000]
[3, 357148259730491491241275888046134445262068590584517902792758027104991731581441884758081992342959554560000000000000000000]
[4, 32468023611862862840115989822375858660188053689501627526614366100453793780131080432552908394814504960000000000000000000]
[5, 2951638510169351167283271802034168969108004880863784320601306009132163070921007312050264399528591360000000000000000000]
[6, 268330773651759197025751982003106269918909534623980392781936909921105733720091573822751309048053760000000000000000000]
[7, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000]
[8, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/11]
[9, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/121]
[10, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/1331]
[11, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/14641]
[12, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/161051]
[13, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/1771561]
[14, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/19487171]
[15, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/214358881]
[16, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/2357947691]
[17, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/25937424601]
[18, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/285311670611]
[19, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/3138428376721]
[20, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/34522712143931]
[21, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/379749833583241]
[22, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/4177248169415651]
[23, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/45949729863572161]
[24, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/505447028499293771]
[25, 24393706695614472456886543818464206356264503147634581161994264538282339429099233983886482640732160000000000000000000/5559917313492231481]
Edited on November 30, 2021, 9:47 am
|
Posted by Charlie
on 2021-11-30 09:34:41 |