close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 科學常識 - 已解決 
Explore Cafepress

Name anything in the world, and we'll show you hundreds of products that celebrate it. Or, you can design your own.
From our sponsors
設90!的末位非零三位數n,試求n值
Jul 15th 2014, 05:57


設首項為1
Loop 1 為第n項+1
Loop 2 為Loop 2的n-1項乘以Loop 1的第n項

而loop 2需加入
=IF(INT(loop 2*loop 1/10)*10=loop 2*loop 1,loop 2*A3/10,loop 2*A3-(INT(loop 2*loop 1/10000))*10000)
作為篩選

則可以得
Loop 2 第90項=90!
答案為 112

所以 n = 112 即是所求

PS : 若用常見的excel則篩選程式是
=IF(INT(B2*A3/10)*10=B2*A3,B2*A3/10,B2*A3-(INT(B2*A3/10000))*10000)
85! n = 232
86! n = 952
87! n = 824
88! n = 512
89! n = 568
90! n = 112

這種題目是教你如何將目前日常發生的問題
如何電腦化 :
亦即讓電腦
如何將算不出的數目正確展現出來
而INT函數是每種電腦語言都有的函數
就像高斯符號
而每一個階乘答案>4位數部位時 , 刪去都不影響n值
就根據上面中的理論而設計讓電腦算出
我將原理告訴你
並用最常見的EXCEL寫程式教你
除此之外只能用我的原理 : (而每一個階乘答案>4位數部位時 , 刪去都不影響n值)
簡化慢慢算
你照著我的方法用EXCEL算只要1~2分鐘便可以得到答案
先開EXCEL
在A2,B2輸入1
在A3輸入=A2+1
然後下拉(欄位右下角有一空心 [ + ] 號將加號下拉)
到A91出現90
然後將公式B2輸入
=IF(INT(B2*A3/10)*10=B2*A3,B2*A3/10,B2*A3-(INT(B2*A3/10000))*10000)
然後下拉
到B91
B91就是答案
應該會有4位數(我預防萬一多一位)
後三位112就是答案

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 qhh44i3lg0n8v 的頭像
    qhh44i3lg0n8v

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    qhh44i3lg0n8v 發表在 痞客邦 留言(0) 人氣()