1Math::NumSeq::TotientCuUmsuelratCiovnet(r3i)buted Perl DMoactuhm:e:nNtuamtSieoqn::TotientCumulative(3)
2
3
4
6 Math::NumSeq::TotientCumulative -- cumulative totients
7
9 use Math::NumSeq::TotientCumulative;
10 my $seq = Math::NumSeq::TotientCumulative->new;
11 my ($i, $value) = $seq->next;
12
14 The cumulative sum totient(1) to totient(i).
15
17 See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
18 classes.
19
20 "$seq = Math::NumSeq::TotientCumulative->new ()"
21 Create and return a new sequence object.
22
23 Random Access
24 "$value = $seq->ith($i)"
25 Return totient(i).
26
27 "$bool = $seq->pred($value)"
28 Return true if $value occurs in the sequence, ie. is a sum
29 totient(1) to totient(i) for some i.
30
32 Math::NumSeq, Math::NumSeq::Totient
33
35 <http://user42.tuxfamily.org/math-numseq/index.html>
36
38 Copyright 2011, 2012, 2013, 2014 Kevin Ryde
39
40 Math-NumSeq is free software; you can redistribute it and/or modify it
41 under the terms of the GNU General Public License as published by the
42 Free Software Foundation; either version 3, or (at your option) any
43 later version.
44
45 Math-NumSeq is distributed in the hope that it will be useful, but
46 WITHOUT ANY WARRANTY; without even the implied warranty of
47 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
48 General Public License for more details.
49
50 You should have received a copy of the GNU General Public License along
51 with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
52
53
54
55perl v5.28.1 2014-06-29Math::NumSeq::TotientCumulative(3)