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, etc
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.
radixparameter selects a base other than decimal. If
radixis 6 or less then there's no "6" digits at all and the sequence has no values.
$bool = $seq->pred ($value)
Return true if
$valuehas "666" in its digits, in the requested
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/>.