Project Euler 710 - One Million Members

Official link: https://projecteuler.net/problem=710

Thought Process

Suppose a number n has a twopal sequence x.

Now I define 2 functions that count the number of palindromic components there are containing no 2's and containing at least one 2, I call them c1(n), c2(n). Importantly note that this palindromic components have no restriction on them, they simply need to sum to n.

Now the problem is simple:

Interactive Code

Input an integer (yourinput)

Code will output t(yourinput)