OFFSET
1,1
MATHEMATICA
SemiprimeQ[n_Integer] := Plus @@ (Last /@ FactorInteger[n]) == 2;
a = Table[ SeriesCoefficient[ Series[x/(x^3 - 2*x^2 - x + 1), {x, 0, 50}], n], {n, 0, 50}];
f[n_] = If[SemiprimeQ[a[[n]]] == True, a[[n]], {}];
Flatten[Table[f[n], {n, 1, Length[a]}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula and Gary W. Adamson, Sep 15 2006
EXTENSIONS
Edited by N. J. A. Sloane, Sep 17 2006
More terms from Amiram Eldar, Jun 06 2025
STATUS
approved
