A025673 Exponent of 8 (value of j) in n-th number of form 5^i*8^j.
0, 0, 1, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 0, 4, 1, 2, 3, 0, 4, 1, 5, 2, 3, 0, 4, 1, 5, 2, 6, 3, 0, 4, 1, 5, 2, 6, 3, 0, 7, 4, 1, 5, 2, 6, 3, 0, 7, 4, 1, 8, 5, 2, 6, 3, 0, 7, 4, 1, 8, 5, 2, 9, 6, 3, 0, 7, 4, 1, 8, 5, 2, 9, 6, 3, 10, 0, 7, 4, 1, 8, 5, 2, 9, 6, 3, 10, 0, 7, 4, 11, 1, 8, 5, 2, 9, 6, 3, 10, 0, 7, 4, 11, 1
Offset: 1
Keywords
Links
Programs
-
Mathematica
Take[Sort[Flatten[Table[{5^i 8^j,j},{i,0,20},{j,0,20}],1]][[;;,2]],120] (* Harvey P. Dale, Nov 10 2024 *) With[{max = 10^11}, IntegerExponent[Sort[Flatten[Table[5^i*8^j, {i, 0, Log[5, max]}, {j, 0, Log[8, max/5^i]}]]], 8]] (* Amiram Eldar, Jul 09 2025 *)