1. Pentagonal, triangular, octagonal numbers

If we have a formula Un+Pn+Tn for n, i.e. Un is the nth term of the octagonal number set etc. Is it possible for Un+Pn+Tn=166?

I tried doing this by equating the formulas, but then I get a quadratic and have to complete the square and I don't think it is right. Anyone got any ideas?

e.g:
Un = n(3n-2)
Tn = (n^2 + n)/2
Pn = n(3n-1)/2

2. Originally Posted by Denny Crane
If we have a formula Un+Pn+Tn for n, i.e. Un is the nth term of the octagonal number set etc. Is it possible for Un+Pn+Tn=166?

I tried doing this by equating the formulas, but then I get a quadratic and have to complete the square and I don't think it is right. Anyone got any ideas?

e.g:
Un = n(3n-2)
Tn = (n^2 + n)/2
Pn = n(3n-1)/2
Okay, Un+ Tn+ Pn= $\displaystyle n(3n-2)+ \frac{n^2+ n}{2}+ \frac{n(3n-1)}{2}$$\displaystyle = \frac{6n^2- 4n}{2}+ \frac{n^2+ n}{2}+ \frac{3n^2- n}{2}$$\displaystyle = \frac{6n^2- 4n+ n^2+ n+ 3n^2- n}{2}$$\displaystyle = \frac{10n^2- 3n}{2}= 166$ so the quadratic equation you get is just $\displaystyle 10n^2- 3n= 332$. Yes, completing the square is "non-trivial" but it is possible. I would first divide the equation by 10 to get $\displaystyle n^2- .3n= 33.2$. Half of -.3 is -.15 and its square is 0.0225. $\displaystyle n^2- .3n+ 0.0225= (n- .15)^2= 33.2+ 0.0225= 33.2225$ so $\displaystyle n= .15+ \sqrt{33.225}$. Now, all you need to do is observe that that result is NOT a positive integer.