OFFSET
1,2
MATHEMATICA
Length/@Select[Split[Flatten[Table[Reverse[IntegerDigits[n, 3]], {n, 0, 100}]]], First[#]==1&] (* Harvey P. Dale, Oct 20 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved