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.