a(n) = number of steps to reach 0 when starting from k = (3^n)-1 and repeatedly applying the map that replaces k with k - (sum of digits in base-3 representation of k).

A261233

a(n) = number of steps to reach 0 when starting from k = (3^n)-1 and repeatedly applying the map that replaces k with k - (sum of digits in base-3 representation of k).

Terms

    a(0) =0a(1) =1a(2) =3a(3) =8a(4) =20a(5) =49a(6) =123a(7) =319a(8) =849a(9) =2294a(10) =6250a(11) =17112a(12) =47013a(13) =129605a(14) =358838a(15) =998805a(16) =2796093a(17) =7869800a(18) =22251147a(19) =63141639a(20) =179701239a(21) =512744599a(22) =1466635089a(23) =4205423895a(24) =12087339723a(25) =34816804310a(26) =100469592521a(27) =290336059740a(28) =839932833290

External references