Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Can It Be Written In Base X With Only 1s And 0sby Limbic~Region (Chancellor) |
on Jun 16, 2015 at 11:27 UTC ( [id://1130587]=note: print w/replies, xml ) | Need Help?? |
BrowserUk,
Yes, I noticed a pattern right away but no way to get to it. Starting from the fact that regardless of what base the number is written in, they must all follow: Essentially what you get is the powerset of the sum of base X from 0 to the left most significant digit. Unfortunately, I can't think of way to benefit from this without memoization. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|