OFFSET
1,33
MATHEMATICA
Accumulate[Which[#==3, 1, #==4, -1, True, 0]&/@Flatten[Table[Reverse[IntegerDigits[n, 6]], {n, 50}]]] (* Harvey P. Dale, Aug 07 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved
