The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Math::NumSeq::RepdigitRadix -- radix in which i is a repdigit

SYNOPSIS

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

DESCRIPTION

The radix in which i is a repdigit,

    starting i=0
    2, 0, 0, 2, 3, 4, 5, 2, 3, 8, 4, 10, etc

i=0 is taken to be a repdigit 00 in base 2, but i=1 and i=2 are not repdigits in any radix, then i=3 is repdigit 11 in base 2. Any i>=3 is a repdigit "11" in base i-1, but it may be a repdigit in a smaller base. For example i=8 is "22" in base 3.

Is this behaviour for i=0,1,2 any good? Perhaps it will change.

FUNCTIONS

$seq = Math::NumSeq::RepdigitRadix->new (key=>value,...)

Create and return a new sequence object.

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

Return the radix in which $i is a repdigit.

SEE ALSO

Math::NumSeq, Math::NumSeq::RepdigitAny