1Math::NumSeq::TribonaccUis(e3r)Contributed Perl DocumentMaattiho:n:NumSeq::Tribonacci(3)
2
3
4

NAME

6       Math::NumSeq::Tribonacci -- Tribonacci numbers
7

SYNOPSIS

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

DESCRIPTION

14       The Tribonacci sequence 0, 0, 1, 1, 2, 4, 7, 13, etc,
15
16           T(i) = T(i-1) + T(i-2) + T(i-3)
17
18       starting from 0,0,1.
19

FUNCTIONS

21       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
22       classes.
23
24       "$seq = Math::NumSeq::Tribonacci->new ()"
25           Create and return a new sequence object.
26
27   Random Access
28       "$value = $seq->ith($i)"
29           Return the $i'th Tribonacci number.
30
31       "$bool = $seq->pred($value)"
32           Return true if $value is a Tribonacci number.
33
34       "$i = $seq->value_to_i_estimate($value)"
35           Return an estimate of the i corresponding to $value.
36

SEE ALSO

38       Math::NumSeq, Math::NumSeq::Fibonacci
39

HOME PAGE

41       <http://user42.tuxfamily.org/math-numseq/index.html>
42

LICENSE

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