OFFSET
0,1
EXAMPLE
a(13) = 27 because 13 in base 6 is 21, its complement in base 6 is 34 and the digit reverse is 43 that is 27 in base 10.
MAPLE
P:=proc(q, h) local a, b, k, n; print(h-1); 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; print(b); od; end: P(10^2, 6);
MATHEMATICA
Table[FromDigits[Reverse[5-IntegerDigits[n, 6]], 6], {n, 0, 70}] (* Harvey P. Dale, Jan 05 2020 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Apr 03 2017
EXTENSIONS
Example corrected by Harvey P. Dale, Jan 05 2020
STATUS
approved