OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..100
MATHEMATICA
f[n_]:=Module[{a={3}}, Do[AppendTo[a, First[y/. {ToRules[Reduce[{y^2+a.a == x^2, x>0, y>0}, {y, x}, Integers]]}]], {n-1}]; a]; f[21]//Timing (* Jean-François Alcover, Jan 26 2007 *)
PROG
(PARI) print1("3, "); s=9; for(n=1, 30, d=divisors(s); t=d[#d\2]; q=(s\t-t)/2; print1(q, ", "); s+=q^2); \\ Max Alekseyev, Nov 23 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles Reed (charles.reed(AT)bbs.ewgateway.org)
EXTENSIONS
More terms from David W. Wilson.
STATUS
approved