OFFSET
0,2
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[7^k], 3] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{s=7^Range[600]}, IntegerExponent[#, 7]&/@Table[SelectFirst[s, DigitCount[ #, 10, 3]==n&], {n, 0, 50}]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 21 2016 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Definition clarified by Harvey P. Dale, Aug 21 2016
STATUS
approved