OFFSET
1,1
FORMULA
q=Max[n/Rev[n], Rev[n]/n]=10m+r integer, where r>0, q>1.
EXAMPLE
Includes special cases of A071685. Examples represented by {n, Rev[n], integer-quotient} triples: {1089, 9801, 9}, {87912, 21979, 4}, {5610, 165, 34}, {610000, 16, 38125}, etc.
MATHEMATICA
nd[x_, y_] := 10*x+y tn[x_] := Fold[nd, 0, x] ed[x_] := IntegerDigits[x] red[x_] := Reverse[ed[x]] Do[s=Mod[ma=Max[{n, tn[red[n]]}], mi=Min[{n, r=tn[red[n]]}]]; If[Equal[s, 0]&&!Equal[n, r] &&!Equal[Mod[ma/mi, 10], 0], Print[{n, r, Max[r/n, n/r]}]], {n, 1, 1000000}]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Jun 03 2002
STATUS
approved