Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
the proof is trivial...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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator