What Is the Significance of the Number 495 in Digit Rearrangement?

  • Thread starter Thread starter Cbray
  • Start date Start date
AI Thread Summary
The discussion focuses on the significance of the number 495 in a process involving three-digit numbers. By arranging the digits of a three-digit number in descending and ascending order and subtracting the latter from the former, a sequence of results is generated. It is shown that for any initial number, the sixth result will always equal 495, demonstrating a convergence to this number regardless of the starting point. The mathematical reasoning involves the properties of digit rearrangement and subtraction, leading to consistent outcomes. Ultimately, the process reveals a unique characteristic of 495 in the context of digit manipulation.
Cbray
Messages
130
Reaction score
0
Tell me how to figure this out:
Let N0 denote a three digit number with not all digits identical. Arrange the digits in descending order and subtract from this number the number that is obtained by arranging the digits in ascending order. Let N1 denote the result, written as a three digit number (e.g., 42 is written as 042). Now perform the same operation on N1 that you performed on N0 and let N2 denote the result. Repeat to construct the sequence N3, N4,...

(a) Show that there exists a number Nx such that if N0=Nx then N1=Nx

(b) Show that N6=Nx for any initial number N0
 
Last edited:
Physics news on Phys.org
Cbray said:
Tell me how to figure this out: Let (..) = subscript
Let N(0) denote a three digit number with not all digits identical. Arrange the digits in descending order and subtract from this number the number that is obtained by arranging the digits in ascending order. Let N(1) denote the result, written as a three digit number (e.g., 42 is written as 042). Now perform the same operation on N(1) that you performed on N(0) and let N(2) denote the result. Repeat to construct the sequence N(3), N(4),...

(a) Show that there exists a number N(x) such that if N(0)=N(x) then N(1)=N(x)

(b) Show that N(6)=N(x) for any initial number N(0)

Try using the buttons above the reply box that are marked X2 and X2 to get superscripts and subscripts respectively, or equivalently, you do it manually by surrounding text you want subscripted or superscripted in [noparse] [/noparse] tags and [noparse] [/noparse] tags respectively.

You will find it very useful that, by definition, any three-digit decimal number is constructed as:

a2102 + a1101 + a0100

where the coefficients a2, a1, and a0 are the first, second, and third digits respectively. You'll have to decide on an arbitrary ordering for the coefficients (i.e. which one is the largest, middle, and smallest).
 
Let z be the greatest digit, and let x be the smallest.
Therefore, x<y<z
Then if we subtract the largest number formed from the smallest number formed, we have
zyx
xyz-
=ABC

Since x<z
C=10+x-z

And,
B=10+y-1-y

Also,
A=z-1-x

z=9,y=5,x=4

z(100)+y(10)+x-(x(100)-y(10)-z)=(z-x)(99)
=495

Hence we only need to check 9 possible numbers: 99,198,297,296,495,594,693,792 and 891 (10(99)=990 which is the same as 99)
 
Last edited:
Cbray said:
Tell me how to figure this out: Let (..) = subscript
Let N(0) denote a three digit number with not all digits identical. Arrange the digits in descending order and subtract from this number the number that is obtained by arranging the digits in ascending order. Let N(1) denote the result, written as a three digit number (e.g., 42 is written as 042).

Ndescend = 100*a + 10*b + c
Nascend = 100*c + 10*b + a

Nd - Na = 99*a - 99*c = 99 * (a - c) ... this is your N(1)

There, that's a start. :shy:

Chucking in various values for a and c, remembering that a>c,
we generate numbers such as 396, 495, 198, 099, 594, etc.

These look like following a pattern, when rearranged in descending order:
1st digit, call it a: always 9
2nd digit, call it b: 5 or 6 or 7 or 8 or 9
3rd digit, call it c: equal to (9-b)

So the number with digits in descending order is: 100*9 + 10 * b + (9-b)
which happens to simplify to: 900 + 9 b + 9 = 909 + 9 * b

If b is 5, it comes to 954
if b is 6, 963
if b is 7, 972
if b is 8, 981
if b is 9, 990

and if arranged in ascending order, these would each become: 459, 369, etc.

Now, subtract the ascending form from the descending form,
954 - 459 = 495
963 - 369 = 594
972 - 279 = 693
981 - 189 = 792
990 - 099 = 891

When these numbers are arranged in descending order, we have 954, 954, 963, 972, 981
and in descending order, 459, 459, 369, 279, 189. ... these are your N(2)



Subtracting the ascending form from the descending form, ...

I'm not sure that I can see where this is heading, I'm just playing with numbers so I'll end here.
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks

Similar threads

2
Replies
83
Views
21K
Replies
42
Views
7K
Replies
125
Views
19K
2
Replies
67
Views
14K
Back
Top