OFFSET
1,1
COMMENTS
If negative numbers are included then the sequence is the above together with its reversals. - Robert G. Wilson v, Sep 11 2006
LINKS
Kevin Browne, Subtracting the Reversal.
EXAMPLE
459 is a member because 954 - 459 = 495; 16992 is a member because 29961 - 16992 = 12969.
MATHEMATICA
Select[Table[n, {n, 200000}], ToExpression[StringReverse[ToString[ # ]]] - # > 0 && Sort[IntegerDigits[ # ]] == Sort[IntegerDigits[ToExpression[StringReverse[ToString[ # ]]] - # ]] &]
fQ[n_] := Block[{id = IntegerDigits@n}, rev = FromDigits@ Reverse@id; rev > n && Sort@id == Sort@IntegerDigits[rev - n]]; Select[ Range@153971, fQ@# &] (* Robert G. Wilson v, Sep 11 2006 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Tanya Khovanova, Sep 04 2006
STATUS
approved