Octagonal Pentagonal Number

A number which is simultaneously octagonal and pentagonal. Let O_n denote the nth octagonal number and P_m the mth pentagonal number, then a number which is both octagonal and pentagonal satisfies the equation O_n=P_m, or

 n(3n-2)=1/2m(3m-1).
(1)

Completing the square and rearranging gives

 (6m-1)^2-8(3n-1)^2=-7.
(2)

Therefore, defining

x=(6m-1)
(3)
y=2(3n-1)
(4)

gives the Pell equation

 x^2-2y^2=-7.
(5)

The first few solutions are (x,y)=(1,2), (5, 4), (11, 8), (31, 22), (65, 46), .... These give the solutions (n,m)=(1/3,2/3), (1, 1), (2, 5/3), (16/3, 4), (11, 8), ..., of which the integer solutions are (1, 1), (11, 8), (1025, 725), (12507, 8844), ... (OEIS A046187 and A046188), corresponding to the octagonal pentagonal numbers 1, 176, 1575425, 234631320, 2098015778145, ... (OEIS A046189).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.