Number of integers m in [0..10^n-1] such that m has no digit in common with the last n digits of either m^2 or m^3.

A256714

Number of integers m in [0..10^n-1] such that m has no digit in common with the last n digits of either m^2 or m^3.

Terms

    a(0) =4a(1) =19a(2) =73a(3) =217a(4) =547a(5) =1106a(6) =2009a(7) =3330a(8) =5417a(9) =8260a(10) =12540a(11) =18642a(12) =27527a(13) =40722a(14) =59550a(15) =86879a(16) =125491a(17) =181837a(18) =262975a(19) =380342a(20) =551367a(21) =798045a(22) =1155637a(23) =1673351a(24) =2425756a(25) =3518191a(26) =5106563a(27) =7410173a(28) =10763697a(29) =15634003

External references