A025661 Exponent of 6 (value of i) in n-th number of form 6^i*8^j.
0, 1, 0, 2, 1, 0, 3, 2, 1, 0, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 8, 0, 7, 6, 5, 4, 3, 2, 9, 1, 8, 0, 7, 6, 5, 4, 3, 10, 2, 9, 1, 8, 0, 7, 6, 5, 4, 11, 3, 10, 2, 9, 1, 8, 0, 7, 6, 5, 12, 4, 11, 3, 10, 2, 9, 1, 8, 0, 7, 6, 13, 5, 12, 4, 11, 3, 10, 2, 9, 1, 8, 0, 7, 14, 6, 13
Offset: 1
Keywords
Links
Programs
-
Mathematica
With[{max = 10^12}, IntegerExponent[Sort[Flatten[Table[6^i*8^j, {i, 0, Log[6, max]}, {j, 0, Log[8, max/6^i]}]]], 6]] (* Amiram Eldar, Jul 09 2025 *)