Kevin Ryde > Math-NumSeq > Math::NumSeq::Beastly

Download:
Math-NumSeq-71.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  2
View/Report Bugs
Module Version: 71   Source  

NAME ^

Math::NumSeq::Beastly -- numbers containing digits "666"

SYNOPSIS ^

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

DESCRIPTION ^

This sequence is the beastly numbers which are those with "666" somewhere in their digits. The default is decimal, or a radix can be given.

    666, 1666, 2666, 3666, 4666, 5666,
    6660, 6661, 6662, ..., 6669,
    7666, 8666, 9666,
    etc

FUNCTIONS ^

See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes.

$seq = Math::NumSeq::Beastly->new ()
$seq = Math::NumSeq::Beastly->new (radix => $r)

Create and return a new sequence object.

An optional radix parameter selects a base other than decimal. If radix is 6 or less then there's no "6" digits at all and the sequence has no values.

$bool = $seq->pred ($value)

Return true if $value has "666" in its digits, in the requested radix.

SEE ALSO ^

Math::NumSeq, Math::NumSeq::Repdigits

HOME PAGE ^

http://user42.tuxfamily.org/math-numseq/index.html

LICENSE ^

Copyright 2010, 2011, 2012, 2013, 2014 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/>.

syntax highlighting: