We consider the binomial expansion formula first. For any real numbers a and b and a positive integer n, the expansion of (a+b)n is written as
(a+b)n=∑r=0n(rn)an−rbr.
Here, the general term (also called the (r+1)th term) is
Tr+1=(rn)an−rbr.
Now, in our problem we have a=2 and b=3x, so the expansion of (2+3x)n is
(2+3x)n=∑r=0n(rn)2n−r(3x)r.
From this, the coefficient of the term containing xr is obtained by looking at the power of x in each term. Since (3x)r=3rxr, the coefficient of xr is
(rn)2n−r3r1.
We are told that the coefficients of x7 and x8 are equal. Writing these coefficients explicitly:
Coefficient of x7
C7=(7n)2n−7371.
Coefficient of x8
C8=(8n)2n−8381.
The condition given in the problem is
C7=C8.
Substituting the explicit expressions, we have
(7n)2n−7371=(8n)2n−8381.
We start simplifying this equality step by step. First, divide both sides by the common positive factor 2n−8371 (which is definitely non-zero):
(7n)2n−7371/(2n−8371)=(8n)2n−8381/(2n−8371).
Simplifying the left‐hand side first:
2n−82n−7=21=2,1/371/37=1.
So the left‐hand side simplifies to
2(7n).
Simplifying the right‐hand side likewise, observe
1/371/38=31,2n−82n−8=1,
so the right‐hand side becomes
31(8n).
Equating these simplified expressions gives
2(7n)=31(8n).
Multiplying both sides by 3 to clear the denominator, we get
6(7n)=(8n).
Next, we use the well-known relation between consecutive binomial coefficients, namely
(8n)(7n)=n−78.
This formula itself comes from expanding the factorial form:
(8n)(7n)=8!(n−8)!n!7!(n−7)!n!=7!(n−7)!8!(n−8)!=n−78.
Returning to our equation 6(7n)=(8n), divide both sides by (8n) (which is certainly non-zero for n≥8):
6(8n)(7n)=1.
Substituting the ratio (8n)(7n)=n−78 gives
6×n−78=1.
Hence
n−748=1.
Now multiply both sides by n−7 and obtain
48=n−7.
Finally, adding 7 to both sides yields
n=55.
So, the answer is 55.