Progressive number (source code)

= Progressive number

A <positive integer> $n$ for which some division $n=dq+r$ with <integers> $d,q,r>0$ and $r<d$ has $d,q,r$ as consecutive terms of a <geometric progression> in some order. Writing a reduced <common ratio> as $a/b$ with $a>b>0$ and $\gcd(a,b)=1$, the three terms have the form $tb^2,tab,ta^2$ for a <positive integer> $t$.