OFFSET
1,1
EXAMPLE
310 is a term of the sequence because 310 in base 6 is 1234, its complement in base 3 is 4321 and the digit reverse is again 1234 that is 310 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, 6);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Apr 03 2017
STATUS
approved