Блог пользователя bagdat.zhursynbek.ru

Автор bagdat.zhursynbek.ru, история, 6 лет назад, По-английски

Hello Codeforces!

Please help me on this mathematical problem:

Given x and k, (x, k are Natural numbers) Find formula of xk - (x - 1)k, corectly open the brackets.

  • Проголосовать: нравится
  • -19
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +13 Проголосовать: не нравится

What do you mean by formula? Isn't xk - (x - 1)k already a formula?

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I don't see how is it related to competitive programming at all. You could use Newton's formula to open the brackets and get binomial coefficients, but that won't be easier to calculate (in fact, it would be even harder), so I don't see much use for it. Will you please give a problem where this is needed (or you think this is needed)? It's likely it has more elegant solution than one you propose.