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

A023413

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

Terms

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

External references