OFFSET
1,1
COMMENTS
Note that each time two more terms are added simultaneously.
EXAMPLE
a(1)=7 therefore a(2)=24 and a(3)=25: 7^2+24^2=25^2; a(3)=25 therefore a(4)=60 and a(5)=65: 25^2+60^2=65^2.
PROG
(Python)
from math import isqrt
from sympy.ntheory.primetest import is_square
def aupton(terms):
alst = [7]
for n in range(2, terms+1, 2):
sq1, an = alst[-1]**2, alst[-1] + 1
while not is_square(sq1 + an**2): an += 1
alst.extend([an, isqrt(sq1 + an**2)])
return alst[:terms]
print(aupton(19)) # Michael S. Branicky, Jul 24 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 21 2002
EXTENSIONS
a(16) and beyond from Michael S. Branicky, Jul 24 2021
STATUS
approved