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