Let the number be abcd
As given the sum of the numbers is 21, then


As both 'd' are equal, we have

and

Now, we will substitute for b , c and d in the first equation we get







Neglect the negative value. So a = 5
Hence, the first number is = 5
As d=a-1, so d=5-1 = 4
As c=d-1, so c=4-1=3
As b=
=

Hence, the number is 5934 .