1Math::NumSeq::RepdigitsU(s3e)r Contributed Perl DocumentaMtaitohn::NumSeq::Repdigits(3)
2
3
4

NAME

6       Math::NumSeq::Repdigits -- repdigits 11, 22, 33, etc
7

SYNOPSIS

9        use Math::NumSeq::Repdigits;
10        my $seq = Math::NumSeq::Repdigits->new (radix => 10);
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       The sequence of repdigit numbers,
15
16           0, 1 ... 9, 11, 22, 33, ... 99, 111, 222, 333, ..., 999, etc
17           starting i=0
18
19       comprising repetitions of a single digit.  The default is decimal or a
20       "radix" parameter can be given.
21

FUNCTIONS

23       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
24       classes.
25
26       "$seq = Math::NumSeq::Repdigits->new ()"
27       "$seq = Math::NumSeq::Repdigits->new (radix => $r)"
28           Create and return a new sequence object.
29
30   Random Access
31       "$value = $seq->ith($i)"
32           Return the $i'th repdigit.
33
34       "$bool = $seq->pred($value)"
35           Return true if $value is a repdigit in the given "radix".
36
37       "$i = $seq->value_to_i_ceil($value)"
38       "$i = $seq->value_to_i_floor($value)"
39           Return the $i index of $value, rounding up or down if $value is not
40           a repdigit.
41
42       "$i = $seq->value_to_i_estimate($value)"
43           Return an estimate of the i corresponding to $value.
44

SEE ALSO

46       Math::NumSeq, Math::NumSeq::RepdigitAny, Math::NumSeq::Beastly
47

HOME PAGE

49       <http://user42.tuxfamily.org/math-numseq/index.html>
50

LICENSE

52       Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
53
54       Math-NumSeq is free software; you can redistribute it and/or modify it
55       under the terms of the GNU General Public License as published by the
56       Free Software Foundation; either version 3, or (at your option) any
57       later version.
58
59       Math-NumSeq is distributed in the hope that it will be useful, but
60       WITHOUT ANY WARRANTY; without even the implied warranty of
61       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
62       General Public License for more details.
63
64       You should have received a copy of the GNU General Public License along
65       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
66
67
68
69perl v5.38.0                      2023-07-20        Math::NumSeq::Repdigits(3)
Impressum