Kaprekar's routine
id:
kaprekar-s-routine-170-3757379
title:
Kaprekar's routine
text:
In number theory, Kaprekar's routine is an iterative algorithm named after its inventor, Indian mathematician D. R. Kaprekar. Each iteration starts with a number, sorts the digits into descending and ascending order, and calculates the difference between the two new numbers. As an example, starting with the number 8991 in base 10:
- 9981 – 1899 = 8082
- 8820 – 0288 = 8532
- 8532 – 2358 = 6174
- 7641 – 1467 = 6174 6174, known as Kaprekar's constant, is a fixed point of this algorithm. Any
brand slug:
wiki
category slug:
encyclopedia
description:
Iterative algorithm
original url:
https://en.wikipedia.org/wiki/Kaprekar%27s_routine
date created:
2005-02-12T10:06:21Z
date modified:
2024-08-31T21:06:45Z
main entity:
{"identifier":"Q18413622","url":"https://www.wikidata.org/entity/Q18413622"}
image:
fields total:
13
integrity:
15