Playing with numbers: Balanced Pandigits
|
07-09-2016, 10:54 AM
Post: #2
|
|||
|
|||
RE: Playing with numbers: Balanced Pandigits
(07-07-2016 04:40 PM)Joe Horn Wrote: I know this is not a Number Theory forum, but I see that many of you have played extensively with pandigital numbers (hereafter referred to as pandigits), so I'm hoping you can help me with a pandigit puzzler. The range of numbers can be optimized a little, if you are looking only for 10-digit numbers, you know for sure log10(x^a) is between 9 and 10. This means: a) a can only go from 2 to 9 (which would yield a single-digit x). b) for each a, you can determine the range of x. For a=2, 9/2=4.5 and 10/2=5, so xmin=10^4.5=31623 and xmax=10^5=100000, so your loop could start from 31623 (would've found the 32043 much faster). As a becomes larger, the range of x is much narrower which would speed up your search a lot. I'll give it a try if I have time, perhaps we can find a 20-digit one. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Playing with numbers: Balanced Pandigits - Joe Horn - 07-07-2016, 04:40 PM
RE: Playing with numbers: Balanced Pandigits - Claudio L. - 07-09-2016 10:54 AM
RE: Playing with numbers: Balanced Pandigits - Joe Horn - 07-17-2016, 06:37 AM
RE: Playing with numbers: Balanced Pandigits - Arno K - 07-15-2016, 08:23 AM
|
User(s) browsing this thread: 1 Guest(s)