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


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


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,


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.


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



Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2019, 2020 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 <>.