All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Rare Rotative Relationship! (Posted on 2004-09-23)
What is the smallest number so that if you move its last digit to the beginning (for example, turning 1234 into 4123) you get a new number that is an integer multiple of the original number?

 See The Solution Submitted by Old Original Oskar! Rating: 4.7500 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 The first few | Comment 3 of 13 |
`Number       new numb.  multiple102564        410256        4128205        512820        4142857        714285        5153846        615384        4179487        717948        4205128        820512        4230769        923076        4`

DEFDBL A-Z
n = 11
DO
n1\$ = LTRIM\$(STR\$(n))
n2\$ = RIGHT\$(n1\$, 1) + LEFT\$(n1\$, LEN(n1\$) - 1)
n2 = VAL(n2\$)
IF n2 / n = INT(n2 / n) THEN
IF n2 / n > 1 THEN PRINT n, n2, n2 / n
END IF
n = n + 1
LOOP

 Posted by Charlie on 2004-09-23 13:27:56

 Search: Search body:
Forums (0)