On applying Kaprekar's routine on all 4 digit numbers and counting how many times any other number is visited, it generates a nice symmetrical grid if plotted on a 100x100 matrix see https://anuraguniyal.github.io/6174/
2026-04-07 09:42:04.1775554924
Kaprekar's constant, visit count of each number
252 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in RECREATIONAL-MATHEMATICS
- Good ideas for communicating the joy of mathematics to nine and ten year olds
- Who has built the house of Mason?
- Is there any tri-angle ?
- In what position , the dogs will reside?
- existence of solutions of $a^n+b^n+c^n=6^n$
- Sushi Go! and optimal passing strategy
- Cut the letter $M$ to obtain $9$ single triangles by drawing $3$ straight lines
- Tennis balls problem from John H Conway's "Genius At Play"
- The Heegner Polynomials
- 2018 January Challenge: Prove inequality in geometry problem
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?

If a number has digits $a$, $b$, $c$, and $d$ with $a\geq b\geq c\geq d$ then Kaprekar's routine will give: $$1000a + 100b + 10c + d - 1000d - 100c - 10b - a = 999(a-d) +90(b-c)$$ Notice also that $0 \leq b - c \leq a - d \leq 9$. This means there are only ${11 \choose 2} = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55$ different possible results.
These values $a - d$ and $b - c$ give the coordinates in the grid. The y-coordinate in the grid is given by the lower two digits of the number (or so I gather from the position of the red dot). $a - d$ doesn't affect this much because the coefficient $999$ means this part of the number will only change by $-1$ when $a - d$ increases by $1$. However, $b - c$ has a larger affect because its coefficient is $90$. This means the number changes by $-10$ when $b - c$ increases by 1 (except going from $0$ to $0$ which is the reason for the isolated dot in the upper left as further explained later). This means $b - c$ is the dominating factor in determining the x-coordinate.
The x-coordinate is given by the upper two digits of the number. A change of $1$ in $b - c$ gives a change of only $0$ or $1$ in this coordinate while a change of $1$ in $a - d$ gives a change in the coordinate of $9$ or $10$.
So, the bottom row consists of numbers with $b - c = 0$, the next row up is numbers with $b - c = 1$, and so on. Similarly, the right-most column are numbers with $a - d = 9$, the next column to the left is $a - d = 8$ and so on.
The skewedness of the rows and columns comes from the smaller contributions of $a - d$ to the y-coordinate and $b - c$ to the x-coordinate.
The fact that it is a triangle instead of a full square is due to the $b - c \leq a - d$ constraint.
The point in the upper left "ought" to be in the lower left according to the pattern. This is the point with $a = b = c = d = 0$. But, if $d - a > 0$, then the y-coordinate "underflows" due to the small contribution of $d - a$.