.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Math::PlanePath::WythoffPreliminaryTriangle 3pm" .TH Math::PlanePath::WythoffPreliminaryTriangle 3pm "2021-01-23" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Math::PlanePath::WythoffPreliminaryTriangle \-\- Wythoff row containing X,Y recurrence .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& use Math::PlanePath::WythoffPreliminaryTriangle; \& my $path = Math::PlanePath::WythoffPreliminaryTriangle\->new; \& my ($x, $y) = $path\->n_to_xy (123); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This path is the Wythoff preliminary triangle by Clark Kimberling, .IX Xref "Kimberling, Clark" .PP .Vb 10 \& 13 | 105 118 131 144 60 65 70 75 80 85 90 95 100 \& 12 | 97 110 47 52 57 62 67 72 77 82 87 92 \& 11 | 34 39 44 49 54 59 64 69 74 79 84 \& 10 | 31 36 41 46 51 56 61 66 71 76 \& 9 | 28 33 38 43 48 53 58 63 26 \& 8 | 25 30 35 40 45 50 55 23 \& 7 | 22 27 32 37 42 18 20 \& 6 | 19 24 29 13 15 17 \& 5 | 16 21 10 12 14 \& 4 | 5 7 9 11 \& 3 | 4 6 8 \& 2 | 3 2 \& 1 | 1 \& Y=0 | \& +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \& X=0 1 2 3 4 5 6 7 8 9 10 11 12 .Ve .PP A given N is at an X,Y position in the triangle according to where row number N of the Wythoff array \*(L"precurses\*(R" back to. Each Wythoff row is a Fibonacci recurrence. Starting from the pair of values in the first and second columns of row N it can be run in reverse by .PP .Vb 1 \& F[i\-1] = F[i+i] \- F[i] .Ve .PP It can be shown that such a reverse always reaches a pair Y and X with Y>=1 and 0<=X=1 and 0<=Xnew ()""" 4 .el .IP "\f(CW$path = Math::PlanePath::WythoffPreliminaryTriangle\->new ()\fR" 4 .IX Item "$path = Math::PlanePath::WythoffPreliminaryTriangle->new ()" Create and return a new path object. .SH "OEIS" .IX Header "OEIS" Entries in Sloane's Online Encyclopedia of Integer Sequences related to this path include .Sp .RS 4 (etc) .RE .PP .Vb 4 \& A165360 X \& A165359 Y \& A166309 N by rows \& A173027 N on Y axis .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" Math::PlanePath, Math::PlanePath::WythoffArray .SH "HOME PAGE" .IX Header "HOME PAGE" .SH "LICENSE" .IX Header "LICENSE" Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Kevin Ryde .PP This file is part of Math-PlanePath. .PP Math-PlanePath is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. .PP Math-PlanePath is distributed in the hope that it will be useful, but \&\s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of \s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See the \s-1GNU\s0 General Public License for more details. .PP You should have received a copy of the \s-1GNU\s0 General Public License along with Math-PlanePath. If not, see .