OFFSET
4,2
COMMENTS
The product p*q is the sum of p consecutive odd numbers with 2*n-1 the greatest.
For n=4 p*q=3*5=15, 15=7+5+3
For n=5 p*q=3*7=21, 21=9+7+5
For n=6 p*q=5*7=35, 35=11+9+7+5+3
For n=7 p*q=3*11=33, 33=13+11+9
k^2 is the sum of the k first consecutive odd numbers p=n-k and q=n+k.
LINKS
Pierre CAMI, Table of n, a(n) for n = 4..60000
EXAMPLE
4*4-1=3*5 p=3 q=5
5*5-4=3*7 p=3 q=7
6*6-1=5*7 p=5 q=7
7*7-16=3*11 p=3 q=11
PROG
(PARI) a(n) = {for (k=1, n-1, my(x=n^2-k^2); if ((omega(x)==2) && (bigomega(x)==2) && (x%2), return(k^2); ); ); } \\ Michel Marcus, Sep 23 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 29 2008
STATUS
approved