News for hackers. Stuff that matters.
Re:A happy numeric coincidence by Aardwolf on Wednesday January 02, 2019 @12:18PM (#18807870)
You can speed up brute force search by starting somewhere before where log10(x^y) * 4.5 is roughly equal to x. For example 2222^140 is 2110 which is close to 2222. Then brute force search from there and you get:

2222 ^ 145

Re:A happy numeric coincidence by klodolph on Wednesday January 02, 2019 @03:09PM (#18809673)
How much does this speed up brute force search, though? You have to actually compute the exponent and digit sums. If I iterate over the powers of N from N^I to N^J, I do something like O((J-I)^2*log N) work doing multiplications the naive way.
Re:A happy numeric coincidence by Asooka on Thursday January 03, 2019 @06:16AM (#18814324)
Rewrite

    log(x^y)*4.5 = x
    y*log(x)*4.5 = x
    y = x/(4.5*log x)
So picking a random number like 234, we get y=21.94819 and the digit sum of 234^22 == 234. In this case we actually just had to compute one exponent and one digit sum.
Re:A happy numeric coincidence by klodolph on Thursday January 03, 2019 @10:34AM (#18815821)
Hint: try checking other numbers.