An octagonal hexagonal number is both an octagonal number and a hexagonal number. Let denote the
th octagonal number and
the
th
hexagonal number, for positive
integers
and
. The indices satisfy the equation
, or
|
(1)
|
Completing the square and rearranging gives
|
(2)
|
This gives the Pell-like equation
|
(3)
|
where
and
. The first few positive
integer solutions are
,
(4, 3), (16, 13), (38, 31), (158, 129), (376, 307), .... These give the candidate
index pairs
, (1, 1), (3, 7/2), (20/3, 8), (80/3,
65/2), (63, 77), ..., of which the pairs of positive
integers begin (1, 1), (63, 77), (6141, 7521), (601723, 736957), ... (OEIS A046190 and A046191),
corresponding to the octagonal hexagonal numbers 1, 11781, 113123361, 1086210502741,
... (OEIS A046192).