Project Euler 169 - Sums of Powers of Two

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

Note: This problem is not suitable for hints! I basically cheated anyways by finding an OEIS sequence.

Thought Process

I used pen and paper to find the first 10 values and found the following OEIS sequence: https://oeis.org/A002487 

From there the problem is done, not happy with my solution, will come back to it at some point.

Interactive Code

No interactive code, my code is given below