Math::NumSeq::RepdigitRadix -- radix in which i is a repdigit
use Math::NumSeq::RepdigitRadix; my $seq = Math::NumSeq::RepdigitRadix->new; my ($i, $value) = $seq->next;
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.
$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.
$i
Math::NumSeq, Math::NumSeq::RepdigitAny
To install Math::NumSeq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::NumSeq
CPAN shell
perl -MCPAN -e shell install Math::NumSeq
For more information on module installation, please visit the detailed CPAN module installation guide.