

A284803


Write in base k, complement, reverse. Case k = 6.


1



5, 4, 3, 2, 1, 0, 34, 28, 22, 16, 10, 4, 33, 27, 21, 15, 9, 3, 32, 26, 20, 14, 8, 2, 31, 25, 19, 13, 7, 1, 30, 24, 18, 12, 6, 0, 214, 178, 142, 106, 70, 34, 208, 172, 136, 100, 64, 28, 202, 166, 130, 94, 58, 22, 196, 160, 124, 88, 52, 16, 190, 154, 118, 82, 46
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,1


LINKS



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(h1); for n from 1 to q do a:=convert(n, base, h); b:=0;
for k from 1 to nops(a) do a[k]:=h1a[k]; b:=h*b+a[k]; od; print(b); od; end: P(10^2, 6);


MATHEMATICA

Table[FromDigits[Reverse[5IntegerDigits[n, 6]], 6], {n, 0, 70}] (* Harvey P. Dale, Jan 05 2020 *)


CROSSREFS



KEYWORD

nonn,base,easy


AUTHOR



EXTENSIONS



STATUS

approved



