OFFSET
1,2
COMMENTS
For palindromic numbers the ratio is equal to 10.
LINKS
Paolo P. Lava and Giovanni Resta, Table of n, a(n) for n = 1..504 (terms < 10^34, first 100 terms from Paolo P. Lava)
P. De Geest, Hopping Numerals
EXAMPLE
37 is in the sequence because prepending a 0 gives 037, removing the least significant digit 7 then gives 03, and finally prepending the 7 gives 703, which is divisible by 37.
25641 is in the sequence because prepending a 0 gives 025641, removing the least significant digit 1 then gives 025641, and finally prepending the 1 gives 102564, which is divisible by 25641.
MAPLE
P:=proc(q) local a, n; for n from 1 to q do
a:=(n mod 10)*10^(ilog10(n)+1)+trunc(n/10);
if not a=n then if type(a/n, integer) then print(n);
fi; fi; od; end: P(10^7);
MATHEMATICA
Select[Range@31000, IntegerQ[FromDigits[RotateRight[Insert[IntegerDigits[#], 0, 1]]]/#]&] (* Ivan N. Ianakiev, May 28 2015 *)
PROG
(PARI) is(n)=my(k=n%10*10^#digits(n)+n\10); k>n && k%n==0 \\ Charles R Greathouse IV, May 08 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, May 06 2015
EXTENSIONS
'Name' and 'Examples' sections reworded by Ivan N. Ianakiev, Aug 05 2015 (following the suggestion of Jon E. Schoenfield)
STATUS
approved