It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.
Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.
Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.
Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
The way that I run this code is via the command line.
$ js p52.js
142857
$
This runs the the SpiderMonkey 1.8.5 interpreter. I got it from the Arch repository at some point.
The way that I run this code is via the command line.
$ js p52.js
142857
$
This runs the the SpiderMonkey 1.8.5 interpreter. I got it from the Arch repository at some point.