NAME
Math::NumSeq::MathImageSquareFreeKernel -- divide out any square factor
SYNOPSIS
use Math::NumSeq::MathImageSquareFreeKernel;
my $seq = Math::NumSeq::MathImageSquareFreeKernel->new;
my ($i, $value) = $seq->next;
DESCRIPTION
The sequence of i with any square factor divided out,
1, 2, 3, 1, 5, 6, 7, 2, 1, 10, 11, 3, ...
For example at i=12 the value is 3 because the square 4 is divided out.
FUNCTIONS
$seq = Math::NumSeq::MathImageSquareFreeKernel->new ()
-
Create and return a new sequence object.
$value = $seq->ith($i)
-
Return
$i
with any square factor divided out. $bool = $seq->pred($value)
-
Return true if
$value
occurs in the sequence, ie. it has no square factor.