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

我的做法

Posted by digiter at 2009-05-31 20:41:23 on Problem 2601 and last updated at 2009-05-31 20:43:21
首先变形为:
a[i + 1] = 2 * a[i] - a[i - 1] + 2 * c[i]

比如
a[2] = 2 * a[1] - a[0] + 2 * c[1]
发现它是a[1]的线性组合,猜想a[3]也是a[1]的线性组合

那么设
a[i] = p[i] * a[1] + q[i]
则
a[i + 1] = 2 * a[i] - a[i - 1] + 2 * c[i]
         = 2 * (p[i] * a[1] + q[i]) - (p[i - 1] * a[1] + q[i - 1]) + 2 * c[i]
         = (2 * p[i] - p[i - 1]) * a[1] + (2 * q[i] - q[i - 1] + 2 * c[i])
即
p[i + 1] = 2 * p[i] - p[i - 1]
q[i + 1] = 2 * q[i] - q[i - 1] + 2 * c[i]
由此递推得到a[n + 1]关于a[1]的线性表达式,即可求解



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