✂️

Kaprekar Numbers

Week 45

From Wolfram Alpha: "A Kaprekar Number is a non-negative integer whose square can be split into two parts (left and right) that add up to the original number"

For example, 9 is Kaprekar number, since 9 * 9 = 81 and we can split 81 into "8" and "1" - if adding those digits 8 + 1, we get our original number, 9

Likewise, 5292 would also be valid, since 5292 * 5292 = 28005264. We can split that into "28" and "005264" (note how we retain the leading 0s) - if we add those two numbers, we get 5292

Note that both the left and right split should be greater than 0 - i.e. 10000 (100000000): 10000 + 0000 is invalid, since the right split 0000 is equal to 0

Your program should output the all Kaprekar numbers from 1 to 1,000,000 - the range 1 to 100 is shown below as an example. Note the format: number (number squared): left split + right split. Also note how leading 0s should be retained in the output (e.g. "01" in the 99 example):

Again, you should paste your program's output for the Kaprekar numbers 1 to 1,000,000 below:

Since this is the first week, it will be used to calibrate the appropriate level of difficulty - hints will be given on the following days:

Hints

Hints will be released at the start of each of the following days - e.g. the start of day 3 is 48 hours after the challenge starts

Release Day Hint
2
45 2026