<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Pascal&#8217;s Triangle	</title>
	<atom:link href="https://www.goldennumber.net/pascals-triangle/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.goldennumber.net/pascals-triangle/</link>
	<description>Golden Ratio, Phi, 1.618, and Fibonacci in Math, Nature, Art, Design, Beauty and the Face. One source with over 100 articles and latest findings.</description>
	<lastBuildDate>Sat, 08 Oct 2022 12:08:43 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Janaka		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-6576</link>

		<dc:creator><![CDATA[Janaka]]></dc:creator>
		<pubDate>Sat, 08 Oct 2022 12:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-6576</guid>

					<description><![CDATA[It says when the first number right to 1 is prime, it divides all in the raw , but it should be all except first and last numbers in the raw.]]></description>
			<content:encoded><![CDATA[<p>It says when the first number right to 1 is prime, it divides all in the raw , but it should be all except first and last numbers in the raw.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brandon Busby		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-5440</link>

		<dc:creator><![CDATA[Brandon Busby]]></dc:creator>
		<pubDate>Thu, 20 Aug 2020 20:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-5440</guid>

					<description><![CDATA[I am working on the following problem.  I realized that the underlying structure IS the Fibonacci sequence.  In order to solve the problem, I need a way to compute the diagonals shown above in a computationally efficient way.

I.e., I need a way to efficiently compute the following sequences:
- 1
- 1 1
- 1 2
- 1 3 1
- 1 4 3
- 1 5 6 1
- 1 6 10 4
- 1 7 15 10 1
- ...

Ideally, to compute the nth sequence would require time proportional to n.  One way that this could be achieved is by using the (n-1)th sequence to compute the nth sequence.

If there happens to be a way to compute the nth sequence in constant time, that would be fantastic.

Problem:

There is a fence with n posts, each post can be painted with one of the k colors.

You have to paint all the posts such that no more than two adjacent fence posts have the same color.

Return the total number of ways you can paint the fence.

Note:
n and k are non-negative integers.

Example:

Input: n = 3, k = 2
Output: 6
Explanation: Take c1 as color 1, c2 as color 2. All possible ways are:

             post1  post2  post3      
 -----     -----  -----  -----       
   1          c1     c1     c2 
   2          c1     c2     c1 
   3          c1     c2     c2 
   4          c2     c1     c1  
   5          c2     c1     c2
   6          c2     c2     c1]]></description>
			<content:encoded><![CDATA[<p>I am working on the following problem.  I realized that the underlying structure IS the Fibonacci sequence.  In order to solve the problem, I need a way to compute the diagonals shown above in a computationally efficient way.</p>
<p>I.e., I need a way to efficiently compute the following sequences:<br />
&#8211; 1<br />
&#8211; 1 1<br />
&#8211; 1 2<br />
&#8211; 1 3 1<br />
&#8211; 1 4 3<br />
&#8211; 1 5 6 1<br />
&#8211; 1 6 10 4<br />
&#8211; 1 7 15 10 1<br />
&#8211; &#8230;</p>
<p>Ideally, to compute the nth sequence would require time proportional to n.  One way that this could be achieved is by using the (n-1)th sequence to compute the nth sequence.</p>
<p>If there happens to be a way to compute the nth sequence in constant time, that would be fantastic.</p>
<p>Problem:</p>
<p>There is a fence with n posts, each post can be painted with one of the k colors.</p>
<p>You have to paint all the posts such that no more than two adjacent fence posts have the same color.</p>
<p>Return the total number of ways you can paint the fence.</p>
<p>Note:<br />
n and k are non-negative integers.</p>
<p>Example:</p>
<p>Input: n = 3, k = 2<br />
Output: 6<br />
Explanation: Take c1 as color 1, c2 as color 2. All possible ways are:</p>
<p>             post1  post2  post3<br />
 &#8212;&#8211;     &#8212;&#8211;  &#8212;&#8211;  &#8212;&#8211;<br />
   1          c1     c1     c2<br />
   2          c1     c2     c1<br />
   3          c1     c2     c2<br />
   4          c2     c1     c1<br />
   5          c2     c1     c2<br />
   6          c2     c2     c1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Callum		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-5072</link>

		<dc:creator><![CDATA[Callum]]></dc:creator>
		<pubDate>Tue, 03 Dec 2019 14:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-5072</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.goldennumber.net/pascals-triangle/#comment-2033&quot;&gt;Gary Meisner&lt;/a&gt;.

It also works below the 5th line. You just carry the tens digit into the previous column 


****11^5=161051 is different than 15101051***
1,5,10,10,5,1
1(5+1)(0+1)051
1(6)(1)051]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.goldennumber.net/pascals-triangle/#comment-2033">Gary Meisner</a>.</p>
<p>It also works below the 5th line. You just carry the tens digit into the previous column </p>
<p>****11^5=161051 is different than 15101051***<br />
1,5,10,10,5,1<br />
1(5+1)(0+1)051<br />
1(6)(1)051</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: M		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4780</link>

		<dc:creator><![CDATA[M]]></dc:creator>
		<pubDate>Fri, 31 May 2019 10:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4780</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.goldennumber.net/pascals-triangle/#comment-4525&quot;&gt;Finn&lt;/a&gt;.

Looking at it this way might help: 

1
0 1
1 0 1
0 2 0 1
1 0 3 0 1
0 3 0 4 0 1
1 0 6 0 5 0 1

Row sum =  Fibonacci sequence]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.goldennumber.net/pascals-triangle/#comment-4525">Finn</a>.</p>
<p>Looking at it this way might help: </p>
<p>1<br />
0 1<br />
1 0 1<br />
0 2 0 1<br />
1 0 3 0 1<br />
0 3 0 4 0 1<br />
1 0 6 0 5 0 1</p>
<p>Row sum =  Fibonacci sequence</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Thomas		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4753</link>

		<dc:creator><![CDATA[Thomas]]></dc:creator>
		<pubDate>Thu, 09 May 2019 03:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4753</guid>

					<description><![CDATA[I was trying to find the fibonacci sequence in the pascal&#039;s triangle. This website is so useful!!!]]></description>
			<content:encoded><![CDATA[<p>I was trying to find the fibonacci sequence in the pascal&#8217;s triangle. This website is so useful!!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4692</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Sun, 31 Mar 2019 09:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4692</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.goldennumber.net/pascals-triangle/#comment-4370&quot;&gt;Mark&lt;/a&gt;.

An inverse example:  

(1x) 0 = 
(1x) 1 + (1x) -1 = 
(1x) -1 + (2x) 2 + (1x) -3 =
(1x) 2 + (3x) -3 + (3x) 5 + (1x) -8 =
(1x) -3 + (4x) 5 + (6x) -8 + (4x) 13 + (1x) -21 = 0]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.goldennumber.net/pascals-triangle/#comment-4370">Mark</a>.</p>
<p>An inverse example:  </p>
<p>(1x) 0 =<br />
(1x) 1 + (1x) -1 =<br />
(1x) -1 + (2x) 2 + (1x) -3 =<br />
(1x) 2 + (3x) -3 + (3x) 5 + (1x) -8 =<br />
(1x) -3 + (4x) 5 + (6x) -8 + (4x) 13 + (1x) -21 = 0</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gary B Meisner		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4534</link>

		<dc:creator><![CDATA[Gary B Meisner]]></dc:creator>
		<pubDate>Sat, 29 Dec 2018 11:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4534</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.goldennumber.net/pascals-triangle/#comment-4525&quot;&gt;Finn&lt;/a&gt;.

See the illustration. The green lines are the &quot;diagonals&quot; and the numbers of the Pascal&#039;s triangle they intersect sum to form the numbers of the Fibonacci sequence - 1, 1, 2, 3, 5, 8, ...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.goldennumber.net/pascals-triangle/#comment-4525">Finn</a>.</p>
<p>See the illustration. The green lines are the &#8220;diagonals&#8221; and the numbers of the Pascal&#8217;s triangle they intersect sum to form the numbers of the Fibonacci sequence &#8211; 1, 1, 2, 3, 5, 8, &#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Finn		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4525</link>

		<dc:creator><![CDATA[Finn]]></dc:creator>
		<pubDate>Fri, 21 Dec 2018 05:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4525</guid>

					<description><![CDATA[So I don&#039;t understand. What does it mean when it says &quot;the numbers on the diagonals add to the Fibonacci series&quot;. Which diagonals is this referring to, and how does this add to make the sequence?]]></description>
			<content:encoded><![CDATA[<p>So I don&#8217;t understand. What does it mean when it says &#8220;the numbers on the diagonals add to the Fibonacci series&#8221;. Which diagonals is this referring to, and how does this add to make the sequence?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4370</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Thu, 30 Aug 2018 13:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4370</guid>

					<description><![CDATA[Another application:
(1x) 21 =
(1x) 8 + (1x) 13 =
(1x) 3 + (2x) 5 + (1x) 8 = 
(1x) 1 + (3x) 2 + (3x) 3 + (1x) 5 =
(1x) 0 + (4x) 1 + (6x) 1 + (4x) 2, (1x) 3  = 21]]></description>
			<content:encoded><![CDATA[<p>Another application:<br />
(1x) 21 =<br />
(1x) 8 + (1x) 13 =<br />
(1x) 3 + (2x) 5 + (1x) 8 =<br />
(1x) 1 + (3x) 2 + (3x) 3 + (1x) 5 =<br />
(1x) 0 + (4x) 1 + (6x) 1 + (4x) 2, (1x) 3  = 21</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://www.goldennumber.net/pascals-triangle/#comment-4146</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Tue, 01 May 2018 08:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phisource.com/?p=519#comment-4146</guid>

					<description><![CDATA[Althought known as Pascal&#039;s triangle, apparently Pascal himself wrote it as a   square. As a square rows and columns represent negative powers of 9 (10-1). 
1 1 1 1 1 1 
1 2 3 4 5
1 3 6 10
1 4 10
1 5
1

1/9 = 0,1111111
1/81=0,0123456
1/729= 0.00137
etc.
(using 1/99.... will avoid carrying over of decimals)

Addiing up those fractions &#039;aproaches&#039;  the ratio 1/8 = 0,125 (0,1249999999.....)
Similar the infinite sum of negative powers of 90 (1/90) results in 1/89, which decimally represents the diagonal sum of Pascal&#039;s triangle:
1 1 1 1 1 ...
0 0 1 2 3 4 ...
0 0 0 0 1 3 6 ...
0 0 0 0 0 0 1 4 ...
0 0 0 0 0 0 0 0 1 ... 
—————————— +
1 1 2 3 5 ...]]></description>
			<content:encoded><![CDATA[<p>Althought known as Pascal&#8217;s triangle, apparently Pascal himself wrote it as a   square. As a square rows and columns represent negative powers of 9 (10-1).<br />
1 1 1 1 1 1<br />
1 2 3 4 5<br />
1 3 6 10<br />
1 4 10<br />
1 5<br />
1</p>
<p>1/9 = 0,1111111<br />
1/81=0,0123456<br />
1/729= 0.00137<br />
etc.<br />
(using 1/99&#8230;. will avoid carrying over of decimals)</p>
<p>Addiing up those fractions &#8216;aproaches&#8217;  the ratio 1/8 = 0,125 (0,1249999999&#8230;..)<br />
Similar the infinite sum of negative powers of 90 (1/90) results in 1/89, which decimally represents the diagonal sum of Pascal&#8217;s triangle:<br />
1 1 1 1 1 &#8230;<br />
0 0 1 2 3 4 &#8230;<br />
0 0 0 0 1 3 6 &#8230;<br />
0 0 0 0 0 0 1 4 &#8230;<br />
0 0 0 0 0 0 0 0 1 &#8230;<br />
—————————— +<br />
1 1 2 3 5 &#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
