puzzles (8-15-08)

Wyverex wyverex.cypher at gmail.com
Fri Aug 15 08:30:59 PDT 2008


1)  Consider the number 142857. We can right-rotate this number by 
moving the last digit (7) to the front of it, giving us 714285.
It can be verified that 714285=5*142857.
This demonstrates an unusual property of 142857: it is a divisor of its 
right-rotation.

Find the digits of the set of all integers n, 11 < n < 10^100, that have 
this property.



2 and 3 from the other day are time consuming but are good practice for 
new programmers!


More information about the Digitalmars-d-learn mailing list