MaplePrimes - Questions and Posts tagged with integer
http://www.mapleprimes.com/tags/integer
en-us2017 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSat, 19 Aug 2017 07:29:55 GMTSat, 19 Aug 2017 07:29:55 GMTThe most recent questions and posts on MaplePrimes tagged with integerhttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with integer
http://www.mapleprimes.com/tags/integer
a look at recursive functions
https://www.mapleprimes.com/posts/208466-A-Look-At-Recursive-Functions?ref=Feed:MaplePrimes:Tagged With integer
<p>Hi MaplePrimes,</p>
<p><a href="/view.aspx?sf=208466_post/another_recursive_sequence.mw">another_recursive_sequence.mw</a></p>
<p><a href="/view.aspx?sf=208466_post/another_recursive_sequence.pdf">another_recursive_sequence.pdf</a></p>
<p>These two files have the same content. One is a .pdf and the other is a Maple Worksheet. I explore integer sequences of the form - </p>
<p>a(r) = c*a(r-1)+d*a(r-2) with a(1) and a(2) given.</p>
<p>Some of these sequences are in (the Online Encyclopedia of Integer Sequences) OEIS.org and some are not. If we restrict c to 1 and assume that a(1)=1 and a(2) = 2 we have the parameter d remaining. See additional webpage - </p>
<p>https://sites.google.com/site/recrusivefunction/</p>
<p>Let me know if you like the code.</p>
<p>Regards,</p>
<p>Matt</p>
<p> </p>
<p>Hi MaplePrimes,</p>
<p><a href="/view.aspx?sf=208466_post/another_recursive_sequence.mw">another_recursive_sequence.mw</a></p>
<p><a href="/view.aspx?sf=208466_post/another_recursive_sequence.pdf">another_recursive_sequence.pdf</a></p>
<p>These two files have the same content. One is a .pdf and the other is a Maple Worksheet. I explore integer sequences of the form - </p>
<p>a(r) = c*a(r-1)+d*a(r-2) with a(1) and a(2) given.</p>
<p>Some of these sequences are in (the Online Encyclopedia of Integer Sequences) OEIS.org and some are not. If we restrict c to 1 and assume that a(1)=1 and a(2) = 2 we have the parameter d remaining. See additional webpage - </p>
<p>https://sites.google.com/site/recrusivefunction/</p>
<p>Let me know if you like the code.</p>
<p>Regards,</p>
<p>Matt</p>
<p> </p>
208466Mon, 14 Aug 2017 10:44:32 ZMatt C AndersonMatt C Andersonan obscure sequence
https://www.mapleprimes.com/questions/222234-An-Obscure-Sequence?ref=Feed:MaplePrimes:Tagged With integer
<p>HI experts,</p>
<p><a href="/view.aspx?sf=222234_question/fibonacci_sequence_with_coefficient.pdf">fibonacci_sequence_with_coefficient.pdf</a></p>
<p>Is there a Last name associated with a double 'hailstone problem' with variable integer coefficients?</p>
<p>Just curious.</p>
<p>Regards,</p>
<p>Matt</p>
<p> </p>
<p>HI experts,</p>
<p><a href="/view.aspx?sf=222234_question/fibonacci_sequence_with_coefficient.pdf">fibonacci_sequence_with_coefficient.pdf</a></p>
<p>Is there a Last name associated with a double 'hailstone problem' with variable integer coefficients?</p>
<p>Just curious.</p>
<p>Regards,</p>
<p>Matt</p>
<p> </p>
222234Sat, 01 Jul 2017 14:41:43 ZMatt C AndersonMatt C AndersonHow to solve a VRP
https://www.mapleprimes.com/questions/220689-How-To-Solve-A-VRP-?ref=Feed:MaplePrimes:Tagged With integer
<p>Friends in Maple</p>
<p>I have a Vehicle Routing Problem I wish to cast as a integer model. VRP is a kind of TSP and knapsack problem hybrid I would be grateful if someone can finish it. answers included. This isn't homework BTW.</p>
<p><img height="100px" src="/view.aspx?sf=220689_question/vrp1.PNG" width="100px"><a href="/view.aspx?sf=220689_question/VRP_IP.mw">VRP_IP.mw</a></p>
<p>Friends in Maple</p>
<p>I have a Vehicle Routing Problem I wish to cast as a integer model. VRP is a kind of TSP and knapsack problem hybrid I would be grateful if someone can finish it. answers included. This isn't homework BTW.</p>
<p><img height="100px" src="/view.aspx?sf=220689_question/vrp1.PNG" width="100px"><a href="/view.aspx?sf=220689_question/VRP_IP.mw">VRP_IP.mw</a></p>
220689Sat, 31 Dec 2016 09:34:52 Zbrian bovrilbrian bovrilTSP integer program problem
https://www.mapleprimes.com/questions/220639-TSP-Integer-Program-Problem?ref=Feed:MaplePrimes:Tagged With integer
<p>Hello</p>
<p>I know there are other methods to solve this classic probem, but I wanted to cast it as a linear program. I wonder if an expert can look at my IP coding and please correct my error.</p>
<p><a href="/view.aspx?sf=220639_question/TSP_IP.mw">TSP_IP.mw</a></p>
<p>sorry its a mishmash of 1D and 2D inputs</p>
<p>Hello</p>
<p>I know there are other methods to solve this classic probem, but I wanted to cast it as a linear program. I wonder if an expert can look at my IP coding and please correct my error.</p>
<p><a href="/view.aspx?sf=220639_question/TSP_IP.mw">TSP_IP.mw</a></p>
<p>sorry its a mishmash of 1D and 2D inputs</p>
220639Tue, 27 Dec 2016 10:33:31 Zbrian bovrilbrian bovrilCheck if an integer is part of the factorisation of another number
https://www.mapleprimes.com/questions/219812-Check-If-An-Integer-Is-Part-Of-The-Factorisation?ref=Feed:MaplePrimes:Tagged With integer
<p>Hello,</p>
<p>I am working on a Dirichlet breakdown of primes. I need a way to check if a number is part of anothers number factorization.</p>
<p>Example: 30 = 2*3*5.</p>
<p>2 is therefore part of the ifactor of 30. 4 and 7 are not.<br>
How do I check if, for instance, 7 is part of de factorization of 390?</p>
<p>Thanks in advance.</p>
<p>Hello,</p>
<p>I am working on a Dirichlet breakdown of primes. I need a way to check if a number is part of anothers number factorization.</p>
<p>Example: 30 = 2*3*5.</p>
<p>2 is therefore part of the ifactor of 30. 4 and 7 are not.<br>
How do I check if, for instance, 7 is part of de factorization of 390?</p>
<p>Thanks in advance.</p>
219812Sat, 05 Nov 2016 19:53:40 ZVrijstijlerVrijstijlerHow do I solve a diophantine equation in Maple?
https://www.mapleprimes.com/questions/219109-How-Do-I-Solve-A-Diophantine-Equation-In-Maple?ref=Feed:MaplePrimes:Tagged With integer
<p>I'd like to solve 178<em>x</em> + 312<em>y</em> = 14</p>
<p>I tried:</p>
<p>a=178,b=312:<br>c=igcdex(a,b,'e','f');<br>14/c*e=x;14/c*f=y;</p>
<p>But Maple wouldn't solve this, so I did</p>
<p>c=igcdex(178,312,'e','f');<br>14/c*e=x;14/c*f=y;</p>
<p>This gave <span class="tL8wMe EMoHub" style="text-align: left;">x = 145 en y = -103</span>, <span style="text-decoration: underline;">while according to the answers it should be</span> <em>x</em> = -49 en<em> y =</em> 28.</p>
<p>145*178-103*312 is NOT 14, so something does indeed go wrong.</p>
<p> </p>
<p>Can Maple solve this even better? Like <span style="text-decoration: underline;">in one go</span>, with 178,312,x,y and 14 in one argument?</p>
<p> </p>
<p> </p><p>I'd like to solve 178<em>x</em> + 312<em>y</em> = 14</p>
<p>I tried:</p>
<p>a=178,b=312:<br>c=igcdex(a,b,'e','f');<br>14/c*e=x;14/c*f=y;</p>
<p>But Maple wouldn't solve this, so I did</p>
<p>c=igcdex(178,312,'e','f');<br>14/c*e=x;14/c*f=y;</p>
<p>This gave <span class="tL8wMe EMoHub" style="text-align: left;">x = 145 en y = -103</span>, <span style="text-decoration: underline;">while according to the answers it should be</span> <em>x</em> = -49 en<em> y =</em> 28.</p>
<p>145*178-103*312 is NOT 14, so something does indeed go wrong.</p>
<p> </p>
<p>Can Maple solve this even better? Like <span style="text-decoration: underline;">in one go</span>, with 178,312,x,y and 14 in one argument?</p>
<p> </p>
<p> </p>219109Thu, 13 Oct 2016 13:36:10 Z14Robin14Robin