Aller au contenu
Number Buffet

Nombres de Kaprekar

Élevez le nombre au carré, coupez le carré en deux, additionnez les moitiés et retrouvez le nombre de départ — 45² = 2025 et 20 + 25 = 45.

OEIS A006886 · 3 min de lecture

Réglages

Préréglages rapides

The routine is the separate digit-sorting process that drives any four-digit number to 6174.

Used in "Kaprekar numbers" mode. The search runs to 5,000,000, which holds 56 of them.

Prints 45² = 2025 → 20 + 25 instead of just 45.

Any number that fits inside the chosen width. Repdigits like 1111 collapse straight to zero.

Leading zeros are kept, which is the usual convention — at width 4, the number 12 is treated as 0012.

Affiner l’apparence

Choisissez d’abord un préréglage à côté de l’image — ces réglages l’ajustent.

Frame

A border drawn inside the edge of the image.

Avancé

Résultats

12 valeurs

1² = 1 → 0 + 1, 9² = 81 → 8 + 1, 45² = 2025 → 20 + 25, 55² = 3025 → 30 + 25, 99² = 9801 → 98 + 01, 297² = 88209 → 88 + 209, 703² = 494209 → 494 + 209, 999² = 998001 → 998 + 001, 2223² = 4941729 → 494 + 1729, 2728² = 7441984 → 744 + 1984, 4879² = 23804641 → 238 + 04641, 4950² = 24502500 → 2450 + 2500

The right-hand piece keeps its leading zeros: 99² = 9801 splits as 98 + 01. The cut is not always in the middle — 4879² = 23,804,641 splits as 238 + 04641. Powers of ten are excluded by convention, since they only ever split as n + 0.


Créer une image

Activez JavaScript pour mettre en forme ces nombres et les télécharger en image. Les valeurs elles-mêmes sont listées ci-dessus.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

L’article de fond ci-dessous n’est pas encore traduit et s’affiche en anglais.

À propos des nombres de kaprekar

Dattatreya Ramchandra Kaprekar was born in Dahanu, on the coast north of Bombay, on 17 January 1905. He studied at Fergusson College in Pune from 1923, won the Wrangler R. P. Paranjpe Mathematical Prize in 1927, took his B.Sc. in 1929, and that same year began work as a schoolmaster in Devlali, where he stayed until retiring at 58 in 1962. He never held a university post. For more than thirty years he investigated the decimal representations of integers in his spare time, publishing in local journals and pamphlets and lecturing to anyone who would listen.

The discovery he is remembered for came in 1946: take any four-digit number with at least two distinct digits, arrange its digits into the largest and smallest numbers they can form, subtract, and repeat. You always reach 6174, and never in more than seven steps. He announced this at the Madras Mathematical Conference in 1949 and wrote it up as "Problems involving reversal of digits" in Scripta Mathematica in 1953. The number 6174 has been called Kaprekar's constant ever since.

The Kaprekar numbers are a separate idea, defined by splitting a square rather than sorting digits, and he returned to them in the Journal of Recreational Mathematics in 1980–1981. He also gave his name to Harshad numbers and to the self or Devlali numbers.

For most of his life the professional community ignored him. That changed in 1975, when Martin Gardner devoted his Mathematical Games column in the March issue of Scientific American to Kaprekar and his numbers. Kaprekar died in Devlali in 1986, by then internationally known.

Propriétés principales

  • The Kaprekar numbers below five million are 1, 9, 45, 55, 99, 297, 703, 999, 2223, 2728, 4879, … — 56 of them in all, ending at 4,927,941.
  • 45² = 2025 and 20 + 25 = 45; 703² = 494,209 and 494 + 209 = 703.
  • If n² splits as q·10^m + r with q + r = n, then n² − n = q·(10^m − 1), so 10^m − 1 always divides n(n − 1).
  • That same identity forces 10^m > n, so the cut can never fall inside the last digits of n — but it can fall to the left of the square, as in 4879² = 23,804,641 = 238 + 04641.
  • Powers of ten are excluded by convention: 10² = 100 splits as 10 + 0, which satisfies the equation only because r is allowed to be zero.
  • Kaprekar's routine, a separate process, sends every four-digit number with at least two distinct digits to 6174 in at most seven subtractions, and every three-digit number with at least two distinct digits to 495 in at most six.
  • Repdigits are the only four-digit starting values the routine fails on: 1111 and its siblings go straight to 0 and stay there.
  • Three and four digits are the only lengths with a single non-zero fixed point. At 2, 5 and 7 digits there is none, and at 6, 8 and 9 digits there are two apiece — 549945 and 631764, 63317664 and 97508421, 554999445 and 864197532 — which is why 495 and 6174 get to be called constants and the others do not.

Où on les rencontre

  • Kaprekar's routine is a staple of school mathematics clubs and outreach talks, because the result is startling and the verification needs nothing but subtraction.
  • Martin Gardner's Mathematical Games column in Scientific American, March 1975, introduced Kaprekar's work to a general readership and is the reason the name travelled outside India.
  • 6174 appears in puzzle collections, Project Euler-style programming challenges and countless "write a program that reaches 6174" exercises.
  • Harshad numbers (divisible by their own digit sum) and the self or Devlali numbers are both Kaprekar's coinages, and Devlali numbers still carry the name of the town where he taught.
  • Kaprekar numbers generalise to other bases and other powers, and the base-and-power table is a common worked example in computational number theory courses.

Comment utiliser ce générateur

Les valeurs générées apparaissent en haut, avec un bouton de copie à côté. Pour en faire une image, choisissez un style sous Créer une image, sélectionnez une taille d’export et téléchargez en PNG, JPEG ou WebP. Tout est rendu dans votre navigateur : rien de ce que vous générez n’est envoyé à un serveur.

La barre d’adresse se met à jour au fil de votre travail : le lien reproduit donc toujours exactement ce que vous voyez — pratique pour partager une suite précise ou conserver une configuration. Utilisez Copier pour récupérer les valeurs en texte brut, ou Exporter les données pour du CSV, JSON, NDJSON, SQL ou XML.

Sources

Les résumés historiques de cette page s’appuient sur les références en licence ouverte listées ci-dessus. Vous avez repéré une erreur ? Dites-le nous et nous la corrigerons.