! Copyright (c) 2008 Aaron Schaefer.
! See https://factorcode.org/license.txt for BSD license.
USING: combinators.short-circuit kernel math math.functions
- project-euler.common sequences sorting grouping ;
+project-euler.common sequences sorting grouping ;
IN: project-euler.052
-! https://projecteuler.net/index.php?section=problems&id=52
+! https://projecteuler.net/problem=52
! DESCRIPTION
! -----------
-! It can be seen that the number, 125874, and its double, 251748, contain
-! exactly the same digits, but in a different order.
+! 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.
+! Find the smallest positive integer, x, such that 2x, 3x, 4x,
+! 5x, and 6x, contain the same digits.
! SOLUTION
! --------
-! Analysis shows the number must be odd, divisible by 3, and larger than 123456
+! Analysis shows the number must be odd, divisible by 3, and
+! larger than 123456
<PRIVATE