Math::NumSeq::FibbinaryBitCount -- number of bits in each fibbinary number
use Math::NumSeq::FibbinaryBitCount; my $seq = Math::NumSeq::FibbinaryBitCount->new; my ($i, $value) = $seq->next;
The number of 1 bits in the i'th fibbinary number.
See "FUNCTIONS" in Math::NumSeq for the behaviour common to all path classes.
$seq = Math::NumSeq::FibbinaryBitCount->new (key=>value,...)
Create and return a new sequence object.
$value = $seq->ith($i)
Return the bit count of the $i'th fibbinary number.
$i
$bool = $seq->pred($value)
Return true if $value occurs as a bit count, which simply means $value >= 0.
$value
$value >= 0
Math::NumSeq, Math::NumSeq::Fibbinary
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.