[SOLVED] Problem in understanding Magic Formulas(424C)
Разница между en1 и en2, 9 символ(ов) изменены
Hi,↵

I just read the [editorial](http://codeforces.com/blog/entry/11944) of [Magic Formulas](http://codeforces.com/problemset/problem/424/C). I couldn't understand a particular formula in editorial.↵

In editorial it is written that,↵

$q_i = p_i \oplus (1\quad  mod\quad   i) \oplus (2\quad  mod\quad  i) \oplus ... \oplus (n\quad  mod\quad  i)$.↵

But in question, the formula is given as,↵

$q_i = p_i \oplus (i \quad mod \quad 1) \oplus (i \quad mod \quad 2) \oplus ... \oplus (i \quad mod \quad n)$.↵

I am not able to understand how these formulas are equivalent. Please help me understanding what I am missing here.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский hrushikesht 2017-05-29 10:27:15 9
en1 Английский hrushikesht 2017-05-27 12:32:16 674 Initial revision (published)