OFFSET
0,2
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 0..10000
EXAMPLE
3 belongs to the sequence since there is no k such that k + reverse(k) = 3.
MATHEMATICA
Module[{nn=100, rd}, rd=Union[Table[n+FromDigits[ Reverse[ IntegerDigits[ n]]], {n, nn}]]; Complement[Range[nn], rd]] (* Harvey P. Dale, Dec 16 2013 *)
PROG
(ARIBAS): function a067031(a, b: integer); var k, n, i, rev: integer; test: boolean; st, nst: string; begin for n := a to b do k := 0; test := 1; while test and k <= n do st := itoa(k); nst := ""; for i := 0 to length(st) - 1 do nst := concat(st[i], nst); end; rev := atoi(nst); if n = k + rev then test := 0; else inc(k); end; end; if k > n then write(n, ", "); end; end; end; a067031(0, 100); .
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Klaus Brockhaus, Dec 29 2001
STATUS
approved