Kevin Ryde > Math-NumSeq-Alpha-2 > Math::NumSeq::AlphabeticalLengthSteps
Module Version: 2

# NAME

Math::NumSeq::AlphabeticalLengthSteps -- iterations of length in characters

# SYNOPSIS

``` use Math::NumSeq::AlphabeticalLengthSteps;
my \$seq = Math::NumSeq::AlphabeticalLengthSteps->new;
my (\$i, \$value) = \$seq->next;```

# DESCRIPTION

This is a count of how many times iterating i -> AlphabeticalLength(i) until reaching a cycle.

```    i     = 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
value = 3, 3, 2, 0, 1, 3, 2, 2, 1, 3, 4, 4, 3, 3, 3, ...```

For example i=6="six" is 3 letters, then 3="three" is 5 letters, 5="five" is 4 letters, and 4="four" is its own length. This took 3 steps to reach the cycle at 4->4. At i=4 the value is 0 for no steps to reach a cycle "four"=4.

# FUNCTIONS

See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes.

`\$seq = Math::NumSeq::AlphabeticalLengthSteps->new ()`
`\$seq = Math::NumSeq::AlphabeticalLengthSteps->new (lang => \$str)`

Create and return a new sequence object.

## Random Access

`\$value = \$seq->ith(\$i)`

Return the number times to apply AlphabeticalLength until reaching a cycle.

http://user42.tuxfamily.org/math-numseq/index.html