OFFSET
1,2
COMMENTS
All primes are in this sequence, so a(n) << n log n. Does a(n) ~ n log n? That is, are composites of relative density 0 in this sequence? - Charles R Greathouse IV, Sep 12 2012
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
The divisors of 187 are 1, 11, 17, 187, with reverses 1, 11, 71, 781 which all divide 781, the reverse of 187, so 187 is a term of the sequence.
MATHEMATICA
rev[n_] := FromDigits[Reverse[IntegerDigits[n]]]; a = {}; Do[d = Map[rev, Divisors[n]]; l = Length[d]; e = rev[n]; r = True; For[i = 1, i <= l, i++, If[ ! IntegerQ[e/d[[i]]], r = False]]; If[r, a = Append[a, n]], {n, 1, 200}]; a
Select[Range[200], Union[Divisible[IntegerReverse[#], IntegerReverse/@Divisors[#]]]=={True}&] (* Harvey P. Dale, Sep 04 2023 *)
PROG
(PARI) rev(n)=eval(concat(vecextract(Vec(Str(n)), "-1..1")))
is(n)=my(r=rev(n)); fordiv(n, d, if(r%rev(d), return(0))); 1 \\ Charles R Greathouse IV, Sep 12 2012
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Joseph L. Pe, Jul 05 2002
STATUS
approved