Brute force for number 45, not so great, but workable.
A different approach, still not working.