Hello everyone,
I was trying to solve INOI 2019 Problem 2 - Interesting Sequences. I have tried the DP solution.
My approach -
did you get it?if yes could you please give an explanation here