login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A087993
Numbers k for which the quotient q(k)=(k+rev(k))/abs(k-rev(k)) is an integer.
3
45, 54, 495, 594, 4356, 4545, 4995, 5454, 5895, 5985, 5994, 6534, 10890, 19602, 20691, 29403, 30492, 39204, 40293, 43956, 45045, 49005, 49995, 50094, 54054, 59994, 65934, 68607, 70686, 77319, 91377, 109890, 197802, 208791, 296703, 307692
OFFSET
1,1
LINKS
EXAMPLE
n = 45, rev(n) = 54, q = 99/9 = 9 integer;
n = 934065, rev(n) = 560434, q = 1494504/373626 = 4, integer.
MATHEMATICA
rev[n_] := FromDigits@ Reverse@ IntegerDigits@ n; Select[Range[10^5], # != (r = rev[#]) && Mod[# + r, # - r] == 0 &] (* Giovanni Resta, May 14 2017 *)
CROSSREFS
Cf. A087994 (the quotients), A118959.
Sequence in context: A043246 A044026 A085607 * A062390 A167328 A116247
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Oct 08 2003
STATUS
approved