Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:公式的推导

Posted by yinjili at 2011-04-17 12:25:09 on Problem 2140 and last updated at 2011-04-17 12:53:13
In Reply To:公式的推导 Posted by:Ly86 at 2010-04-25 19:03:36
> n有多少个奇因数,就是本题的答案
这句话是对的,但你推导过程不对。k可以为奇数,k+1为偶数,因为N当然会有偶数因子啊。

我的推导思路是这样:设2*d1-1为含奇数项的答案的项数,x为中间值,(2*d1-1)*x=N的整数解为答案的一部分。
设偶数项解的中间2项之和为2*x-1,设d2为偶数项的对数,x,x-1,为一对,x+1,x-2为一对.....  (2*x-1)*d=N的整数解为答案的另一部分。
  合起来就是“n有多少个奇因数,就是本题的答案”。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator