Generating series Problem help needed (CHFBANK)

I saw this question Chef and Bank and many sucessfull submissions where using the SERIES A005282 .
Example : SOLUTION uses and many solutions use. but if u go to A005282, there is no proper formula to genrate the series. How did people genrate it ?

Please see the editorial: https://discuss.codechef.com/problems/CHFBANK