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

the proof is trivial...

Posted by frkstyc at 2006-01-24 17:50:12 on Problem 2748
In Reply To:Re:75000 is enough... simple maths, just program to calculate the minimum n that a[n]=a[n+1]=1(mod 10^5) Posted by:fjnu_jxd_010 at 2006-01-24 17:45:13
> but can you proof it by math?

first evaluate function to the 750001st term. now you see that f(0)=f
(750000) and f(1)=f(750001). since the recurrence is of the second order, 
750000 is now proven to be a period.

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