OFFSET
0,12
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
EXAMPLE
a(12) = 3 since A067030(12) = 33 and for k = 12, 21, 30 we have 33 = k + reverse(k).
PROG
(ARIBAS): function a067032(a, b: integer); var n, k, c, i, rev: integer; st, nst: string; begin for n := a to b do k := 0; c := 0; while 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 inc(c); end; inc(k); end; if c > 0 then write(c, ", "); end; end; end; a067032(0, 1000); .
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Klaus Brockhaus, Dec 29 2001
STATUS
approved