by hinkley · 7y ago · 0 comments
That this pattern didn’t swamp the results makes me wonder what kind of bug the author has in the scanning code.
[edit: seems I forgot about situations like 9 x 11 x N, where the digits can add up to 18, 27, etc due to all the 8 and 9 digits, so the algorithm will only find multiples of 9 with lots of small digits in it.]
Similarly, in base 8 7^2 is 61 and in hex f^2 is e1.
(n-1)^2 = n^2 - 2*n + 1 = n(n-2) + 1 which in base n is written with n-2 as the fist digit and 1 as the second digit.
You might add the digits up to 36, whose digits then add up to 9. Simply reapply to the sum if the sum has more than 1 digit, and you'll still arrive at 9.