OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
F:= proc(d) local P;
P:= [[1, 0, 1], [1, 0, 2], [1, 2, 0], [1, 2, 1], [2, 0, 1], [2, 0, 2], [2, 1, 0], [2, 1, 2]];
P:= map(t -> seq(seq([t[1]$i, t[2]$j, t[3]$(d-i-j)], j=1..d-i-1), i=1..d-2), P);
op(sort(map(t -> add(t[-i]*3^(i-1), i=1..d), P)))
end proc:
seq(F(d), d=3..5); # Robert Israel, Apr 29 2025
MATHEMATICA
Select[Range[200], Length[Split[IntegerDigits[#, 3]]]==3&] (* Harvey P. Dale, Jun 11 2024 *)
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved
