Number of steps needed when starting from (3^(n+1))-1 and repeatedly applying the map that replaces k with k - (sum of digits in base-3 representation of k) to encounter the first number whose base-3 representation begins with a digit other than 2.

A261237

Number of steps needed when starting from (3^(n+1))-1 and repeatedly applying the map that replaces k with k - (sum of digits in base-3 representation of k) to encounter the first number whose base-3 representation begins with a digit other than 2.

Terms

    a(0) =1a(1) =1a(2) =2a(3) =5a(4) =13a(5) =34a(6) =92a(7) =251a(8) =687a(9) =1885a(10) =5184a(11) =14292a(12) =39557a(13) =110094a(14) =308351a(15) =868716a(16) =2458964a(17) =6984467a(18) =19890809a(19) =56775186a(20) =162427605a(21) =465816503a(22) =1339163192a(23) =3858600035a(24) =11138726760a(25) =32199805820

External references