Problem

Source: Nordic Mathematical Contest 2017 Problem 1

Tags: algebra, number theory



Let $n$ be a positive integer. Show that there exist positive integers $a$ and $b$ such that \[ \frac{a^2 + a + 1}{b^2 + b + 1} = n^2 + n + 1. \]