ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1047. Simple Calculations

Formula
Posted by evjava 31 Oct 2009 19:00
Anybody use this? It's right formula or no?

a1:=(n*a(0)+a(n+1)-sum(i=1 to n+1 , c(i)*2^i))/(n+1)   ?

Edited by author 31.10.2009 19:00
Re: Formula
Posted by marazmas 26 Jan 2010 00:16
Hi,
if n = N+1, then formula is
a1 = an/n + a0*(n-1)/n - sum(i=1, N, 2*(n-i)*ci)
Re: Formula
Posted by Frank 24 May 2010 21:35
Your formula is OK except in
a1 = an/n + a0*(n-1)/n - sum(i=1, N, 2*(n-i)*ci),
the term sum(i=1, N, 2*(n-i)*ci) should divide by n