OFFSET
1,1
COMMENTS
In some intervals there is one prime only: Q(1)=2, P(1)=3, Q(2)=11, P(2)=13, Q(3)=29, P(3)=31, Q(4)=53, P(5)=97.
Second part of numerical results to the problem: There is always a prime p in the interval between two consecutive square numbers: n^2 <= p <= (n+1)^2.
REFERENCES
Dickson, History of the theory of numbers
EXAMPLE
m=1: 1 < Q < 3 <= P < 4; the only such prime Q and the only such prime P are Q(1)=2 and P(1)=3, so a(1)=2, a(2)=3.
m=2: 9 < Q < 13 <= P < 16; the only such prime Q and the only such prime P are Q(2)=11 and P(2)=13, so a(3)=11, a(4)=13.
m=4: 49 < Q < 57 <= P < 64; the only such prime Q is Q(4)=53, but there are two such primes P (59 and 61), so we take the smaller one, thus P(4)=59, so a(7)=53, a(8)=59.
CROSSREFS
KEYWORD
nonn
AUTHOR
Ulrich Krug (leuchtfeuer37(AT)gmx.de), Mar 08 2009
EXTENSIONS
277 replaced with 241, 347 with 307, 431 with 383, etc. by R. J. Mathar, Nov 01 2010
STATUS
approved