巧用初中知识解@kenchung的方程式数学题 by jubi

View this thread on steempeak.com
· @jubi · (edited)
$68.77
巧用初中知识解@kenchung的方程式数学题
<html>
<p>偶尔去思考一下,避免自己迟钝下去。和我一起参加&nbsp; @kenchung &nbsp;的数学题,体会下思考的乐趣。希望大家多多支持 &nbsp;@kenchung &nbsp;的数学X编程比赛,下一期即将开始。</p>
<blockquote>&nbsp;传送门:<a href="https://steemit.com/contest/@kenchung/question-mathematics-programming-competition-6">[Question] Mathematics × Programming Competition #6 [問題] 數學 × 程式編寫比賽 (第六回)</a></blockquote>
<p><center><img src="https://steemitimages.com/DQmd5zSshfrWZDq88czhcXhSTqfB3T4At4S1MSv5zRASbR1/1%E5%89%AF%E6%9C%AC.jpg" width="400" height="200"/></center></p>
<p>&nbsp;题目:已知 <em>x</em> 為平方數,而 <em>p</em> 為質數,且符合公式 <em>x</em> = 1000000007<em>p</em> + 1。求 <em>p</em> 所有可能值之和。&nbsp;</p>
<p>乍一看被这个大数字吓到了,肯定会有人想用编程解决,毫无疑问这道题用编程解决是非常的快,那么从数学的角度来解答呢?其实一样很简单。</p>
<p><em>x</em> = 1000000007*<em>p</em> + 1 我们可以看作 x^2=1000000007*<em>p</em> + 1;</p>
<p>那么进行简单的变换下;</p>
<p>&nbsp;x^2-1=1000000007*<em>p 即</em><code><strong>(x+1)*(x-1)</strong></code><em>=</em>1000000007*<em>p</em></p>
<p>到这儿我们可以看出来 一个 1000000007*<em>p</em>是相隔2 的两个数相乘的结果。</p>
<p>1000000007*<em>p 的因数为:p、1、1000000007</em></p>
<p>那么显而易见,p 要么是1000000009 要么是1000000005 ,或者0 ,因为p是质数,那么就只能是1000000009了</p>
<p>根据条件进行简单的构造,问题就迎刃而解了。</p>
<p><code><strong>初中学习的x^2-1=(x+1)(x-1)还是挺好用的吗?有忘记吗?</strong></code></p>
<blockquote>除了数学比赛,还有 &nbsp;&nbsp;@armandocat 的 Coding challenge,传送门: <a href="https://steemit.com/contest/@armandocat/coding-challenge-2-win-sbd-if-you-solve-the-problem">Coding challenge #2 - Win SBD if you solve the problem!</a></blockquote>
<h2>Recent Posts</h2>
<ul>
  <li>&nbsp;<a href="https://steemit.com/cn/@jubi/or-7">兴之所致,趣在其中 | 谷哥点名#7</a></li>
  <li><a href="https://steemit.com/cn/@jubi/781yxp">自己忽略的图片版权问题</a></li>
  <li><a href="https://steemit.com/cn/@jubi/5wmwgs">天黑请闭眼,杀手是你吗?烧脑推理电影2部走起!</a></li>
  <li><a href="https://steemit.com/cn/@jubi/4npd1m">死亡实验: 因为我们是狱警,你们是囚犯!</a></li>
  <li><a href="https://steemit.com/cn/@jubi/jjjjjjjjjjjjjjjjjjjjjjjj">说说STEEMIT自定义文章URL</a></li>
  <li><a href="https://steemit.com/cn/@jubi/and-crossword-puzzle-for-steemit">对于填字游戏的小小想法 &amp; Crossword Puzzle For Steemit</a></li>
  <li><a href="https://steemit.com/cn/@jubi/plan-b">得给自己准备一个Plan B</a></li>
  <li><a href="https://steemit.com/cn/@jubi/4pnxy">被人推醒了,N倍梦还继续做吗?TO THE MOON!!</a></li>
  <li><a href="https://steemit.com/cn/@jubi/4zypxn">[难忘至尊宝]那个人样子好怪,好像一条狗</a></li>
  <li><a href="https://steemit.com/cn/@jubi/anime-character-drawing-challenge">动漫人物画画比赛:路飞和艾斯 /Anime Character Drawing Challenge</a></li>
  <li><a href="https://steemit.com/cn/@jubi/egpak-kenchung">不会编程,利用猜测\推理解答 @kenchung 的方程式</a></li>
  <li><a href="https://steemit.com/cn/@jubi/yours-org-and-4">关于YOURS.ORG首页"高收益"的小解释 &amp; 一点想法4</a></li>
  <li><a href="https://steemit.com/cn/@jubi/or-5">跳不出的死循环《恐怖游轮》 | #5电影</a></li>
  <li><a href="https://steemit.com/cn/@jubi/yours-org-and-3">关于YOURS.ORG 投票赚钱 &amp; 一点想法 3</a></li>
  <li><a href="https://steemit.com/cn/@jubi/excel-markdown-convert-excel-to-the-markdown">快速将Excel表格转换为MarkDown表格 /Convert Excel to the MarkDown</a></li>
</ul>
<blockquote><strong>[AD] &nbsp;</strong> <a href="https://steemit.com/cn/@jubi/and-7"><strong>第六期“谷哥点名”活动结束 &amp; 第七期开始 #7兴趣</strong> </a><strong>主题:兴趣 &nbsp;9月20日截止</strong></blockquote>
<blockquote><strong>[AD]</strong> <a href="https://steemit.com/contest/@jubi/2-gmaecontest-find-the-pleasure-in-the-game-2">#2 GameContest : Find the pleasure in the game/#2 游戏竞赛:挖掘游戏的乐趣</a></blockquote>
<p>感谢您阅读 <a href="https://steemit.com/@jubi">@jubi</a> 的帖子 希望得到您的follow、upvote和reply ,对我最重要的是reply,期待和您的每次对话&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 43 others
properties (23)
post_id13,047,266
authorjubi
permlink7wnti-kenchung
categorycn
json_metadata"{"format": "html", "links": ["https://steemit.com/contest/@kenchung/question-mathematics-programming-competition-6", "https://steemit.com/contest/@armandocat/coding-challenge-2-win-sbd-if-you-solve-the-problem", "https://steemit.com/cn/@jubi/or-7", "https://steemit.com/cn/@jubi/781yxp", "https://steemit.com/cn/@jubi/5wmwgs", "https://steemit.com/cn/@jubi/4npd1m", "https://steemit.com/cn/@jubi/jjjjjjjjjjjjjjjjjjjjjjjj", "https://steemit.com/cn/@jubi/and-crossword-puzzle-for-steemit", "https://steemit.com/cn/@jubi/plan-b", "https://steemit.com/cn/@jubi/4pnxy", "https://steemit.com/cn/@jubi/4zypxn", "https://steemit.com/cn/@jubi/anime-character-drawing-challenge", "https://steemit.com/cn/@jubi/egpak-kenchung", "https://steemit.com/cn/@jubi/yours-org-and-4", "https://steemit.com/cn/@jubi/or-5", "https://steemit.com/cn/@jubi/yours-org-and-3", "https://steemit.com/cn/@jubi/excel-markdown-convert-excel-to-the-markdown", "https://steemit.com/cn/@jubi/and-7", "https://steemit.com/contest/@jubi/2-gmaecontest-find-the-pleasure-in-the-game-2", "https://steemit.com/@jubi"], "app": "steemit/0.1", "tags": ["cn", "contest", "cn-contest", "life", "blog"], "users": ["kenchung", "armandocat"], "image": ["https://steemitimages.com/DQmd5zSshfrWZDq88czhcXhSTqfB3T4At4S1MSv5zRASbR1/1%E5%89%AF%E6%9C%AC.jpg"]}"
created2017-09-17 09:49:36
last_update2017-09-17 12:02:15
depth0
children22
net_rshares26,488,874,750,026
last_payout2017-09-24 09:49:36
cashout_time1969-12-31 23:59:59
total_payout_value54.857 SBD
curator_payout_value13.913 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,493
author_reputation81,283,051,616,409
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (107)
@tvb ·
哪有什么编程方法,就是数学方法。编程的总得有个上限,他这个题,乍一看连个上限都没有。。。这题就是数学方法最好哈哈。我也发一个和你的方法略有一点不同哈哈
properties (22)
post_id13,047,408
authortvb
permlinkre-jubi-7wnti-kenchung-20170917t095221498z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 09:52:24
last_update2017-09-17 09:52:24
depth1
children2
net_rshares0
last_payout2017-09-24 09:52:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length75
author_reputation35,846,309,024,528
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jubi ·
还是比较简单的。:)
properties (22)
post_id13,047,607
authorjubi
permlinkre-tvb-re-jubi-7wnti-kenchung-20170917t095459716z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 09:56:12
last_update2017-09-17 09:56:12
depth2
children1
net_rshares0
last_payout2017-09-24 09:56:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length10
author_reputation81,283,051,616,409
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tvb ·
我是把右边配方了,都一个意思哈哈哈。编程就确认一下那个1000什么7是质数能用上,其他我感觉也用不上。看看他的正确答案是怎么做的哈哈。
properties (22)
post_id13,047,830
authortvb
permlinkre-jubi-re-tvb-re-jubi-7wnti-kenchung-20170917t100039773z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:00:45
last_update2017-09-17 10:00:45
depth3
children0
net_rshares0
last_payout2017-09-24 10:00:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length67
author_reputation35,846,309,024,528
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@drunkevil ·
最后一个等式对吗?怎么看着有点问题?
properties (22)
post_id13,047,473
authordrunkevil
permlinkre-jubi-7wnti-kenchung-20170917t095332339z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 09:53:33
last_update2017-09-17 09:53:33
depth1
children5
net_rshares0
last_payout2017-09-24 09:53:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length18
author_reputation8,024,988,975,286
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jubi ·
x*x-1=(x+1)(x-1) 有什么问题吗
properties (22)
post_id13,047,553
authorjubi
permlinkre-drunkevil-re-jubi-7wnti-kenchung-20170917t095401719z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 09:55:12
last_update2017-09-17 09:55:12
depth2
children4
net_rshares0
last_payout2017-09-24 09:55:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length23
author_reputation81,283,051,616,409
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@drunkevil ·
文中好像左边没有减1。
properties (22)
post_id13,050,354
authordrunkevil
permlinkre-jubi-re-drunkevil-re-jubi-7wnti-kenchung-20170917t104959692z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:50:03
last_update2017-09-17 10:50:03
depth3
children3
net_rshares0
last_payout2017-09-24 10:50:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length11
author_reputation8,024,988,975,286
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@hannahwu ·
太烧脑了 我不懂
properties (22)
post_id13,048,597
authorhannahwu
permlinkre-jubi-7wnti-kenchung-20170917t101500133z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:15:03
last_update2017-09-17 10:15:03
depth1
children0
net_rshares0
last_payout2017-09-24 10:15:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length8
author_reputation42,223,628,865,123
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
我去。这题我做错了, 我答案是0, 数学学不好。哎。
properties (22)
post_id13,048,631
authorjustyy
permlinkre-jubi-7wnti-kenchung-20170917t101545189z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:15:45
last_update2017-09-17 10:15:45
depth1
children1
net_rshares0
last_payout2017-09-24 10:15:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation2,057,469,156,047,835
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tvb ·
太好了,我瞬间感觉我的春天来了。
properties (22)
post_id13,055,716
authortvb
permlinkre-justyy-re-jubi-7wnti-kenchung-20170917t122738183z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 12:27:42
last_update2017-09-17 12:27:42
depth2
children0
net_rshares0
last_payout2017-09-24 12:27:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length16
author_reputation35,846,309,024,528
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@kangnajiang ·
原本还以为是一道编程题
结果居然可以靠初中知识解读,被数字吓到了
properties (22)
post_id13,049,566
authorkangnajiang
permlinkre-jubi-7wnti-kenchung-20170917t103424719z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:34:30
last_update2017-09-17 10:34:30
depth1
children1
net_rshares0
last_payout2017-09-24 10:34:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length32
author_reputation1,939,893,008,324
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jubi ·
是呢,表象。
properties (22)
post_id13,049,801
authorjubi
permlinkre-kangnajiang-re-jubi-7wnti-kenchung-20170917t103802932z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 10:39:12
last_update2017-09-17 10:39:12
depth2
children0
net_rshares0
last_payout2017-09-24 10:39:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6
author_reputation81,283,051,616,409
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@catwomanteresa ·
雖然數學不差,可是現在看到數學題都直接跳過,我是不是真的太懶惰了?
properties (22)
post_id13,051,609
authorcatwomanteresa
permlinkre-jubi-7wnti-kenchung-20170917t111234549z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 11:12:36
last_update2017-09-17 11:12:36
depth1
children2
net_rshares0
last_payout2017-09-24 11:12:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length33
author_reputation144,174,644,390,574
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jubi ·
就像我看到英语 大脑会告诉我赶紧打开百度翻译。哈哈
properties (22)
post_id13,052,200
authorjubi
permlinkre-catwomanteresa-re-jubi-7wnti-kenchung-20170917t112252429z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 11:22:57
last_update2017-09-17 11:22:57
depth2
children1
net_rshares0
last_payout2017-09-24 11:22:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length25
author_reputation81,283,051,616,409
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tvb ·
咱俩一样呀,我发现咱俩有很多相似之处,问一下你胖吗?
properties (22)
post_id13,055,703
authortvb
permlinkre-jubi-re-catwomanteresa-re-jubi-7wnti-kenchung-20170917t122714776z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-17 12:27:18
last_update2017-09-17 12:27:18
depth3
children0
net_rshares0
last_payout2017-09-24 12:27:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation35,846,309,024,528
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@kenchung ·
我也是推介這個方法的~ 比較快捷
但是怎麼好像沒有看到你提交的答案? ...
properties (22)
post_id13,156,914
authorkenchung
permlinkre-jubi-7wnti-kenchung-20170918t171611775z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-18 17:16:09
last_update2017-09-18 17:16:09
depth1
children3
net_rshares0
last_payout2017-09-25 17:16:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length38
author_reputation41,157,069,523,808
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tvb ·
你这个题出简单 了,应该把1000000007改成合数。这样首先需要计算出1000000007的质因数,再计算所有的可能的约数,再去循环来做各个约数可能存在约数=1000000007/约数XP+2或-2。这样就是程序题了。现在基本就数学题。
properties (22)
post_id13,168,177
authortvb
permlinkre-kenchung-re-jubi-7wnti-kenchung-20170918t194948415z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-18 19:49:54
last_update2017-09-18 19:49:54
depth2
children2
net_rshares0
last_payout2017-09-25 19:49:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length120
author_reputation35,846,309,024,528
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@kenchung ·
你這提議不錯的,當時想不到啦 haha
properties (22)
post_id13,203,573
authorkenchung
permlinkre-tvb-re-kenchung-re-jubi-7wnti-kenchung-20170919t065437693z
categorycn
json_metadata"{"app": "steemit/0.1", "tags": ["cn"]}"
created2017-09-19 06:54:39
last_update2017-09-19 06:54:39
depth3
children1
net_rshares0
last_payout2017-09-26 06:54:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length19
author_reputation41,157,069,523,808
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@armandocat ·
Unfortunately I don't speak Chinese. I've posted my solution here for who's interested 😼
https://steemit.com/contest/@armandocat/my-solution-to-mathematics-programming-competition-6
👍  
properties (23)
post_id13,205,277
authorarmandocat
permlinkre-jubi-7wnti-kenchung-20170919t072541331z
categorycn
json_metadata"{"app": "steemit/0.1", "links": ["https://steemit.com/contest/@armandocat/my-solution-to-mathematics-programming-competition-6"], "tags": ["cn"]}"
created2017-09-19 07:25:42
last_update2017-09-19 07:25:42
depth1
children0
net_rshares3,112,304,386
last_payout2017-09-26 07:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length181
author_reputation19,054,607,179,632
root_title巧用初中知识解@kenchung的方程式数学题
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)