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
In progress ...
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, ...
In English "four" and has 4 letters, so at i=4 the value is 0 for no steps to reach a cycle. Then for example i=6 "six" is 3 letters, "three" is 5 letters, "five" is 4 letters, taking 3 steps to reach the cycle at 4->4.
FUNCTIONS
See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes.
$seq = Math::NumSeq::AlphabeticalLengthSteps->new ()
$seq = Math::NumSeq::AlphabeticalLengthSteps->new (language => $str)
-
Create and return a new sequence object.
$value = $seq->ith($i)
-
Return the number of letters in
$i
written out in the selected language.
SEE ALSO
Math::NumSeq, Math::NumSeq::AlphabeticalLength
HOME PAGE
http://user42.tuxfamily.org/math-numseq/index.html
LICENSE
Copyright 2012 Kevin Ryde
Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.