A025646 Exponent of 4 (value of i) in n-th number of form 4^i*5^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[{nn=15},IntegerExponent[#,4]&/@Union[Flatten[Table[4^x 5^y,{x,0,nn},{y,0,nn}]]]] (* Harvey P. Dale, May 10 2019 *) With[{max = 10^10}, IntegerExponent[Sort[Flatten[Table[4^i*5^j, {i, 0, Log[4, max]}, {j, 0, Log[5, max/4^i]}]]], 4]] (* Amiram Eldar, Jul 09 2025 *)