OFFSET
1,1
EXAMPLE
952 is a term of the sequence because 952 in base 9 is 1267, its complement in base 9 is 7621 and the digit reverse is again 1267 that is 952 in base 10.
MAPLE
P:=proc(q, h) local a, b, k, n; for n from 1 to q do a:=convert(n, base, h); b:=0;
for k from 1 to nops(a) do a[k]:=h-1-a[k]; b:=h*b+a[k]; od; if b=n then print(n); fi; od; end: P(10^2, 9);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Apr 04 2017
STATUS
approved