%I
%S 1,2,6,21,2145,2145,2685,6225,6885
%N For k not divisible by 10, let f(k) be the number obtained by moving the last digit of k to the front. Then a(n) is the smallest k > 0, made of nonzero digits, such that for all 1 <= i < n, i+1 divides f^i(k).
%e a(5) = 2145 because 2 divides 5214, 3 divides 4521, 4 divides 1452 and 5 divides 2145.
%K base,nonn,easy,fini,full
%O 1,2
%A _Amarnath Murthy_, May 31 2003
%E Edited and extended by _David Wasserman_, Dec 20 2004
