A178481 Number of steps of the map x -> A055566(x), starting at n, before reaching the end of the cycle.
0, 0, 5, 3, 4, 4, 2, 3, 2, 2, 1, 3, 2, 4, 2, 1, 2, 1, 2, 2, 5, 3, 3, 1, 1, 3, 1, 1, 0, 1, 3, 1, 2, 1, 1, 0, 0, 1, 3, 1, 3, 2, 2, 2, 1, 1, 0, 3, 2, 3, 4, 2, 4, 2, 1, 2, 3, 1, 5, 4, 2, 4, 1, 2, 2, 3, 1, 4, 4, 1, 4, 1, 2, 2, 3, 2, 3, 4, 2, 4, 2
Offset: 0
Examples
a(0) = 0 and a(1) = 0 because 0 -> 0 and 1 -> 1. a(15) = 1 because 15^5 = 759375 -> (7+5+9+3+7+5) = 36, 36 ^5 = 60466176 -> (6+0+4+6+6+1+7+6) = 36.
Programs
-
Maple
A178481 := proc(n) local traj ,c; traj := n ; c := [n] ; while true do traj := A055566(traj) ; if member(traj,c) then return nops(c)-1 ; end if; c := [op(c),traj] ; end do: end proc: seq(A178481(n),n=0..80) ; # R. J. Mathar, Jul 08 2012
Comments