OFFSET
1,1
COMMENTS
This is an "arithmetic" sequence (like sigma(n)), so it has offset 1. - N. J. A. Sloane, Dec 06 2021
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..10000
MAPLE
with(numtheory);
A099610 := proc(n) local M, i, t1, tt;
M:=100; t1:=n^2;
for i from 1 to M do
tt:=t1+i;
if (tt mod 2) = 1 and tau(tt) = 4 and nops(factorset(tt)) = 2 then return(tt); fi;
od:
lprint("error: the internal parameter M needs to be increased");
end proc; # N. J. A. Sloane, Dec 05 2021
MATHEMATICA
Module[{nn=70, p2p}, p2p=Union[Times@@@Subsets[Prime[Range[ 2, PrimePi[ Ceiling[ nn^2/3]]]], {2}]]; Table[SelectFirst[p2p, #>n^2&], {n, nn}]] (* Harvey P. Dale, Dec 06 2021 *)
PROG
(Python)
from itertools import count
from sympy import factorint
def A099610(n):
for i in count(n**2+(n%2)+1, 2):
fs = factorint(i)
if len(fs) == 2 == sum(fs.values()):
return i # Chai Wah Wu, Dec 05 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 25 2004
EXTENSIONS
Edited and corrected by Harvey P. Dale and N. J. A. Sloane, Dec 05 2021
STATUS
approved