If any power of 2 ends with k 4's and 7's, they must be the first k terms of this sequence in reverse order.

A023404

If any power of 2 ends with k 4's and 7's, they must be the first k terms of this sequence in reverse order.

Terms

    a(0) =4a(1) =4a(2) =7a(3) =7a(4) =4a(5) =4a(6) =4a(7) =4a(8) =4a(9) =4a(10) =7a(11) =4a(12) =4a(13) =4a(14) =4a(15) =7a(16) =7a(17) =4a(18) =7a(19) =7a(20) =7a(21) =4a(22) =7a(23) =4a(24) =4a(25) =7a(26) =4a(27) =7a(28) =4a(29) =4

External references