Блог пользователя Nishu_Coder

Автор Nishu_Coder, история, 18 месяцев назад, По-английски

Guys please don't downvote my blog. I genuinely need the help. My doubt is if I am given a sequence 1,2,4,8,15,26,... Then how to find a closed formula for this series in this case. please help me. I know this is not relevant to cp. But it will genuinely help to understand the mathematical computation regarding solving subproblems.

As far as i have read this involves polynomial fitting. How to solve this by polynomial fitting . please kindly help.

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

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

You can use The On-Line Encyclopedia of Integer Sequences. For your sequence it gives several variants. For example C(n+1,3) + n + 1.

  • »
    »
    18 месяцев назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    I am familiar with this website. But i really want to develop the skill of finding close formulas using polynomial fitting which comes under discrete mathematics. so if you know this skill please kindly help. It might help me in doing mathematical computation. Afterall having mathematical maturity will be essential in solving subproblems and will certainly help me in future contests.

    • »
      »
      »
      18 месяцев назад, # ^ |
      Rev. 4   Проголосовать: нравится -7 Проголосовать: не нравится

      I have never heard of polynomial fitting before reading this blog. I think it is safe to say this technique is not going to be helpful in CP contests.

      Edit: My bad, I thought polynomial fitting is completely different from polynomial interpolation, which is useful as it is exact. Lagrange interpolation could be a useful technique in your case.

      Resource: https://brilliant.org/wiki/lagrange-interpolation/

      CP blog (keep in mind I haven't read it): https://mirror.codeforces.com/blog/entry/82953

    • »
      »
      »
      18 месяцев назад, # ^ |
      Rev. 2   Проголосовать: нравится -18 Проголосовать: не нравится

      Edit: This is wrong

      Polynomial fitting only works when the equation is a polynomial. Most of the time in CP the sequence we want to find polynomial cannot be represented as a polynomial. For example the formula $$$n+1 \choose 3$$$ $$$ + n + 1$$$ that was mentioned above cannot be found with polynomial fitting. More likely than not, trying to use polynomial fitting will result in a false positive that is completely wrong.