0
Given a positive integer, write it as the sum of items, where each item is in \$\{kt|k\in{1,9,81},t\in{1,2,3,...,64}\}\$. How many items at least are used? Shortest code win.
Samples:
Input Output Method
1 1 1
2 1 2
64 1 64
65 2 64+1
72 1 72
343 ...