For each composition (ordered partition) of n, remove the first part z(1) and add 1 to the next z(1) parts to get a new composition until a partition is repeated. Among all compositions of n, a(n) gives the maximum of steps needed to reach a period.

A177922

For each composition (ordered partition) of n, remove the first part z(1) and add 1 to the next z(1) parts to get a new composition until a partition is repeated. Among all compositions of n, a(n) gives the maximum of steps needed to reach a period.

Terms

    a(0) =0a(1) =2a(2) =3a(3) =5a(4) =7a(5) =9a(6) =9a(7) =11a(8) =16a(9) =18a(10) =18a(11) =18a(12) =22a(13) =28a(14) =30a(15) =30a(16) =25a(17) =29a(18) =36a(19) =43a(20) =45a(21) =45a(22) =39a(23) =39a(24) =45a(25) =53a(26) =61a(27) =63a(28) =63a(29) =56

External references