|
|
A023058
|
|
Numbers k such that k and 2k are anagrams of each other in base 3 (k is written here in base 3).
|
|
1
|
|
|
1012, 10012, 10120, 10122, 10212, 100012, 100120, 100122, 100212, 101200, 101220, 101222, 102120, 102122, 102212, 1000012, 1000120, 1000122, 1000212, 1001200, 1001220, 1001222, 1002120, 1002122, 1002212, 1012000, 1012200, 1012220, 1012222
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
If a*10^m + b is a term, where b < 10^(m-1), then so is a*10^k+b for all k > m. - Robert Israel, Feb 21 2017
|
|
LINKS
|
|
|
MAPLE
|
f:= proc(n) local L, M;
L:= convert(n, base, 3);
M:= convert(2*n, base, 3);
if sort(L) = sort(M) then add(L[i]*10^(i-1), i=1..nops(L)) else NULL fi
end proc:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|