OFFSET
1,2
COMMENTS
Are all terms except 1 multiples of 10? - Derek Orr, Nov 26 2014
EXAMPLE
Rev(2) / Rev(1) = 2 / 1 = 2.
Rev(11) / Rev (10) = 11 / 1 = 11.
Rev(21) / Rev (20) = 12 / 2 = 6.
Rev(51) / Rev (50) = 15 / 5 = 3. Etc.
MAPLE
with(numtheory): T:=proc(w) local x, y, z; x:=0; y:=w;
for z from 1 to ilog10(w)+1 do x:=10*x+(y mod 10); y:=trunc(y/10); od; x; end;
P:=proc(q) local n; for n from 1 to q do if type(T(n+1)/T(n), integer)
then print(n); fi; od; end: P(10^12);
MATHEMATICA
Select[Range[25*10^5], Divisible[IntegerReverse[#+1], IntegerReverse[#]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 28 2018 *)
PROG
(PARI) rev(n)=s=""; for(i=1, #(d=digits(n)), s=concat(d[i], s)); eval(s)
for(n=1, 10^5, if(!(rev(n+1)%rev(n)), print1(n, ", "))) \\ Derek Orr, Nov 26 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Nov 26 2014
STATUS
approved