So I got this question from the $2020$ German Math Olympiad (Schul Runde).
The complete translated question is as follows:
In this task, we consider triples $(a, b, c)$ of positive integers and investigate, which of them are solutions of the equation. An example is (1) $2,16,10$ for a,b,c respectively.
$a^2 + 3ab = c^2$
a) Provide two more solutions of (1). b) Show that equation (1) has an infinite number of solutions. c) How many solutions are there if, in addition, $c=2a+3$ applies?
Also, is there a method that I should follow to get numbers for $a,b,c$ and how can i prove it works and that the equation has infinite solutions.
There are also infinitely many primitive solutions (meaning $\gcd(a,b,c)= 1):$ take integers $u,v$ with $\gcd(u,v) = 1 $ and $u \neq 0 \pmod 3.$
Then take (I am insisting $a > 0$ )
Recipe A: $$ a = u^2 \; , \; \; b = 2uv + 3 v^2 \; , \; \; c = u^2 + 3uv $$
Recipe B: $$ a = u^2 +2uv +v^2 \; , \; \; b =u^2 -2uv \; , \; \; c = 2u^2 + uv - v^2 $$
Recipe C: $$ a = 3 u^2 \; , \; \; b = 2uv + v^2 \; , \; \; c = 3u^2 + 3uv $$
The last one needs with $\gcd(u,v) = 1 $ and $v \neq 0 \pmod 3,$ finally $v \neq u \pmod 3,$
Need to check, the middle one needs $ u +v \neq 0\pmod 3.$
$$ \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc $$
From Mordell, Diophantine Equations
$$ \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc $$
Illustration: I have the computer find solutions by brute force and keep the primitive ones. I have it print the resulting triples from recipes A,B,C, in each case print $u,v$ as the last things on the line.
$$ \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc $$