Menu Close

Find-the-number-of-triangles-with-integer-side-lengths-and-perimeter-p-




Question Number 188301 by mr W last updated on 28/Feb/23
Find the number of triangles with  integer side lengths and perimeter p.
Findthenumberoftriangleswithintegersidelengthsandperimeterp.
Commented by mr W last updated on 28/Feb/23
as Q188239, but in general case.
asQ188239,butingeneralcase.
Commented by BaliramKumar last updated on 27/Feb/23
why
why
Commented by mr W last updated on 27/Feb/23
for more solutions!
formoresolutions!
Commented by mr W last updated on 27/Feb/23
if you have a solution, please share.
ifyouhaveasolution,pleaseshare.
Answered by mr W last updated on 04/Mar/23
this is my solution:  say the sides of the triangle are a,b,c  with a≤b≤c, then the question is to   find the number of solutions of   following equation  a+b+c=p   ...(i)  with 1≤a≤b≤c and a+b>c.  say  a=1+u with u≥0  b=a+v=1+u+v with v≥0  c=b+w=1+u+v+w with w≥0  and  (1+u)+(1+u+v)>(1+u+v+w)  ⇒u>w−1 ⇒u≥w  say u=w+s with s≥0  then the equation (i) becomes to  (1+w+s)+(1+w+s+v)+(1+w+s+v+w)=p  ⇒3+4w+3s+2v=p    ...(I)  with w,s,v≥0  the number of solutions of eqn. (I)  is the coefficient of x^p  term in  the expansion of  x^3 (1+x^4 +x^8 +...)(1+x^3 +x^6 +...)(1+x^2 +x^4 +...)  i.e. (x^3 /((1−x^4 )(1−x^3 )(1−x^2 ))).  its expansion see below.    examples:  p=16: the coef. of x^(16)  is 5.  ⇒ 5 triangles have p=16.  p=50:  the coef. of x^(50)  is 52.  ⇒ 52 triangles have p=50.  p=75: the coef. of x^(75)  is 127.  ⇒ 127 triangles have p=75.
thisismysolution:saythesidesofthetrianglearea,b,cwithabc,thenthequestionistofindthenumberofsolutionsoffollowingequationa+b+c=p(i)with1abcanda+b>c.saya=1+uwithu0b=a+v=1+u+vwithv0c=b+w=1+u+v+wwithw0and(1+u)+(1+u+v)>(1+u+v+w)u>w1uwsayu=w+swiths0thentheequation(i)becomesto(1+w+s)+(1+w+s+v)+(1+w+s+v+w)=p3+4w+3s+2v=p(I)withw,s,v0thenumberofsolutionsofeqn.(I)isthecoefficientofxptermintheexpansionofx3(1+x4+x8+)(1+x3+x6+)(1+x2+x4+)i.e.x3(1x4)(1x3)(1x2).itsexpansionseebelow.examples:p=16:thecoef.ofx16is5.5triangleshavep=16.p=50:thecoef.ofx50is52.52triangleshavep=50.p=75:thecoef.ofx75is127.127triangleshavep=75.
Commented by mr W last updated on 04/Mar/23
Commented by manxsol last updated on 27/Feb/23
Bravo, Sir W. Great work .  thanks for the explanation
Bravo,SirW.Greatwork.thanksfortheexplanation
Commented by mr W last updated on 28/Feb/23
this is a question in the number   theory about the partition of an   integer.
thisisaquestioninthenumbertheoryaboutthepartitionofaninteger.
Commented by mr W last updated on 28/Feb/23
Commented by BaliramKumar last updated on 28/Feb/23
Great Sir
GreatSir

Leave a Reply

Your email address will not be published. Required fields are marked *