A016037 Map numbers to number of letters in English name; sequence gives number of steps to converge (to 4).
1, 3, 3, 2, 0, 1, 3, 2, 2, 1, 3, 4, 4, 3, 3, 3, 3, 2, 3, 3, 4, 2, 2, 5, 4, 4, 2, 5, 5, 4, 4, 2, 2, 5, 4, 4, 2, 5, 5, 4, 2, 3, 3, 4, 2, 2, 3, 4, 4, 2, 2, 3, 3, 4, 2, 2, 3, 4, 4, 2, 2, 3, 3, 4, 2, 2, 3, 4, 4, 2, 3, 4, 4, 5, 5, 5, 4, 5, 5, 5, 4, 2, 2, 5, 4, 4, 2, 5, 5, 4, 4, 2, 2, 5, 4, 4, 2, 5, 5, 4
Offset: 0
Examples
1 -> 3 -> 5 -> 4, so a(1) = 3.
Programs
-
Mathematica
(* get t from A005589 *) f[n_] := Length@ NestWhileList[ StringLength@ t[[# + 1]] &, n, UnsameQ, 2] - 2; Array[f, 100, 0] (* Robert G. Wilson v, Jun 01 2012 *)
Extensions
Corrected at the suggestion of Kevin Ryde by Robert G. Wilson v, Jun 01 2012
Comments