| 查看: 1417 | 回復(fù): 15 | |||
holmescn金蟲 (正式寫手)
|
[交流]
Euler 工程 第廿七題:系數(shù)的積 已有4人參與
|
|
Euler大牛給出了一個(gè)很牛的二次公式: 這個(gè)很牛的公式, 當(dāng)n 從0取到39的時(shí)候,能給出40個(gè)質(zhì)數(shù). 可是當(dāng)n=40的時(shí)候,就失靈了. 使用計(jì)算機(jī), 我們又得到一個(gè)更牛的公式 這哥們,當(dāng)n從0取到79的時(shí)候,能給出80個(gè)質(zhì)數(shù). 如果我們定義這樣的一個(gè)二次公式: n^2 + an + b a 和 b 的絕對(duì)值都小于1000, 當(dāng)這個(gè)公式能產(chǎn)生最多的質(zhì)數(shù)的時(shí)候, 給出a和b的積. 致歉: 開始譯的時(shí)候,我理解錯(cuò)了,結(jié)果給出錯(cuò)誤的表述,讓大家產(chǎn)生了誤解,在這里說聲對(duì)不起了。 [ Last edited by holmescn on 2011-6-16 at 19:54 ] |
木蟲 (正式寫手)
|
“產(chǎn)生最多的質(zhì)數(shù)”這個(gè)說法有點(diǎn)模糊呢,看例子,是不是指n從0開始取,然后遞增1,直到式子n^2 + an + b不再為質(zhì)數(shù)為止,這個(gè)過程中n的個(gè)數(shù)呢? 然后那個(gè)80個(gè)質(zhì)數(shù)的例子是暗示一個(gè)上限嗎 :80^2 + 1000*80 + 1000 = 87400 (使用的質(zhì)數(shù)表中,最大的質(zhì)數(shù)小于這個(gè)數(shù)~) |
金蟲 (著名寫手)
|
應(yīng)該是沒有什么暗示的吧。要找的是從[0~x)自然數(shù)區(qū)間映射到素?cái)?shù)空間的一個(gè)函數(shù)映射f(n)=n(n+a)+b,要求0~x這個(gè)區(qū)間最長(zhǎng)。 a取正數(shù)的時(shí)候n+a肯定不能超過b,x的取值就是0~(b-a),a取負(fù)數(shù)的時(shí)候似乎只能達(dá)到|a|,函數(shù)形狀是對(duì)稱的,能到達(dá)|a|純屬巧合,真正的產(chǎn)生素?cái)?shù)的部分是0~|a/2|這個(gè)部分,x所在的區(qū)間應(yīng)該是0~|a|。不過再往下也不是沒可能,最可靠的估計(jì)還是0~b。 a的搜索區(qū)間是-1000~1000,b的搜索區(qū)間則是0~1000內(nèi)的素?cái)?shù),算法看起來(lái)需要O(n*n/Inn)的復(fù)雜度,多項(xiàng)式時(shí)間可解的搜索問題吧。 [ Last edited by huycwork on 2011-6-16 at 12:26 ] |

至尊木蟲 (著名寫手)
驃騎將軍

金蟲 (正式寫手)
金蟲 (著名寫手)

金蟲 (正式寫手)
金蟲 (正式寫手)
鐵桿木蟲 (著名寫手)
至尊木蟲 (著名寫手)
驃騎將軍
|
哈哈,這個(gè)題目英文說明很清楚的, Euler published the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 402 + 40 + 41 = 40(40 + 1) + 41 is divisible by 41, and certainly when n = 41, 41² + 41 + 41 is clearly divisible by 41. Using computers, the incredible formula n² − 79n + 1601 was discovered, which produces 80 primes for the consecutive values n = 0 to 79. The product of the coefficients, −79 and 1601, is −126479. Considering quadratics of the form: n² + an + b, where |a| < 1000 and |b| < 1000 where |n| is the modulus/absolute value of n e.g. |11| = 11 and |−4| = 4 Find the product of the coefficients, a and b, for the quadratic expression that produces the maximum number of primes for consecutive values of n, starting with n = 0. |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 【同濟(jì)軟件】軟件(085405)考研求調(diào)劑 +3 | 2026eternal 2026-03-18 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 298-一志愿中國(guó)農(nóng)業(yè)大學(xué)-求調(diào)劑 +7 | 手機(jī)用戶 2026-03-17 | 7/350 |
|
|
[考研] 材料專碩306英一數(shù)二 +10 | z1z2z3879 2026-03-16 | 13/650 |
|
|
[考研] 304求調(diào)劑 +12 | 小熊joy 2026-03-14 | 13/650 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | pupcoco 2026-03-17 | 7/350 |
|
|
[考研] 303求調(diào)劑 +4 | 睿08 2026-03-17 | 6/300 |
|
|
[考研] 0703化學(xué)調(diào)劑 +3 | 妮妮ninicgb 2026-03-17 | 3/150 |
|
|
[考研] 268求調(diào)劑 +6 | 簡(jiǎn)單點(diǎn)0 2026-03-17 | 6/300 |
|
|
[考研] 考研求調(diào)劑 +3 | 橘頌. 2026-03-17 | 4/200 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 304求調(diào)劑 +4 | ahbd 2026-03-14 | 4/200 |
|
|
[考研] 一志愿211 0703方向310分求調(diào)劑 +3 | 努力奮斗112 2026-03-15 | 3/150 |
|
|
[考研] 中科院材料273求調(diào)劑 +4 | yzydy 2026-03-15 | 4/200 |
|
|
[考研] 0856求調(diào)劑 +3 | 劉夢(mèng)微 2026-03-15 | 3/150 |
|
|
[考研] 材料工程調(diào)劑 +9 | 咪咪空空 2026-03-12 | 9/450 |
|
|
[考研] 308求調(diào)劑 +3 | 是Lupa啊 2026-03-12 | 3/150 |
|
|
[論文投稿]
投稿問題
5+4
|
星光燦爛xt 2026-03-12 | 6/300 |
|
|
[考研] 289求調(diào)劑 +3 | 李政瑩 2026-03-12 | 3/150 |
|