TikTok , so often the source of life advice such as “ how to accidentally inhalegases banned by the Geneva Convention ” or “ how toruin a whole clustering of scientific studies , ” has bring out number theory .
In a video posted Tuesday , user Math Letters showed off the particular property of the phone number 495 – which he labels the three - digit Kaprekar constant .
Running through what mathematicians cognize as theKaprekar routine , the narrator indicate how any three - fingerbreadth number – the only restriction is that you ca n’t pick out all three finger’s breadth to be the same , so no 111 or 222 or similar – will finally cease up at 495 .

Isn’t math fun? Image credit: Rdhettinger viaWikimedia CommonsCC BY 3.0
All you have to do is rearrange the digits from magnanimous to smallest , then reverse that and take the departure between the two . Whatever you get , replicate the process . Within a maximum of six repetition , you ’ll get to 495 – and once you ’re there , you ’ll remain there .
It ’s a neat caper , and it certainly seems to run with any number we strain . It ’s also extremely generalizable : in fact , “ the ” Kaprekar numeral is n’t really 495 , but 6174 , because D. R. Kaprekar , the Amerindic mathematician who first discovered the algorithm back in 1949 , was originally work with four - figure number .
But permit ’s stick with three for now – is it always going to work ? Are there any numbers that end up at a different bit alternatively of 495 ? And how could we tell if they did ?

This one was for all you commenters who complain that we dumb our math articles down too much. Image credit: ronstik/Shutterstock.com
Well , the beneficial thing about mathematics problem is that we can often prove them rigorously – and in this case , we have two option : to prove them by brains or brute force . And since the latter selection involves running through 990 individual cases and check whether they terminate up at 495 , we ’re depart to be wise about it .
Step one : Check your stem
We happen to be go in al-Qaeda ten because that ’s the default in the Western earth . But to be clear , this proof exploit in any base you like – and that of trend means you’re able to find these constants in any stem you wish .
Step two : Pick an arbitrary routine
Here ’s a math summit : By “ arbitrary ” , we do n’t mean “ random ” . We signify something likeabcorxyz – something that can act as a stand - in for any three - digit number we like .
We ’re also perish to pull a picayune mathematical trick here , and say “ wloga≥b≥c . ” In English , this is us say that we are going to just assume the dactyl are already in descending ordering – if they are n’t , we can just rearrange it , so it does n’t weigh that we ’re making this assumption .
whole tone three : Write your identification number as a total
This is where the al-Qaida comes in . allow ’s say we choseabc – we know thatahundred andb - tyccan be written as a sum like this : 100a+ 10b+c .
Step four : turn back and repeat
If our starter number isabc , then in rearward order it’scba . As a sum , this will be expressed as 100c+ 10b+a .
stair five : Take the difference of opinion
So we have the larger phone number , 100a+ 10b+c , and the smaller bit , 100c+ 10b+a , so if we take the difference we ’re pass away to get :
( 100a+ 10b+c ) – ( 100c+ 10b+a ) = 100(a – vitamin C ) + ( c – a ) = 99(a – c )
Step six : What does this secernate us ?
What we just proved is that taking the divergence between a orotund - to - small-scale three - digit number and its verso will always give us a multiple of 99 . Which is true – you may essay it – but it may seem a bit useless given what we ’re try out to prove . But wedge a PIN number in it – it will be important soon , we promise .
Let ’s think back to what the dubiousness is : Is 495 the only non - zero number that is produce by the Kaprekar subprogram ? Another path to phrase that would be : Is 495 the only non - zero number that produces itself under the Kaprekar routine ?
That may seem like semantics , but it helps a lot in the proof , because now we have another bit of information about which numbers might be likely three - digit Kaprekar constants . Specifically , we know that if some permutation ofabcis a constant , then it must be divisible by both 99 and ( a – c ) .
stride seven : * Hand waving *
Usingthe same kinds of argumentsas steps one through five , you could figure out that in nucleotide ten , ( a – c ) = 5 .
stair eight : QED
So what have we found ? If a three - digit bit repeat itself under the Kaprekar routine , it can only be the ware of 5 and 99 . In other words , it must be 495 . Hoorah ! We made it !
Now just to prove the same in all bases … and with four - digit numbers , five - digit numbers , and so on , and so on … you screw what ? Maybe we ’ll just go back to those urban legends about399 - year - onetime Thai monks , it seems like less stress .