login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A106137
N-th semiprime mod n.
1
0, 0, 0, 2, 4, 3, 0, 6, 7, 6, 0, 10, 9, 10, 9, 14, 15, 15, 17, 17, 16, 18, 19, 21, 24, 25, 1, 1, 28, 27, 29, 29, 28, 27, 1, 3, 4, 4, 2, 1, 40, 39, 0, 1, 44, 3, 1, 47, 47, 46, 2, 2, 0, 53, 1, 1, 6, 4, 6, 5, 4, 8, 12, 10, 8, 7, 5, 5, 6, 4, 2, 1, 72, 71, 71, 74, 4, 3, 10, 9, 10, 8, 10, 10, 10, 9
OFFSET
1,4
LINKS
EXAMPLE
a(5) = 5th semiprime mod 5 = 14 mod 5 = 4.
MATHEMATICA
Module[{nn=400, sp}, sp=Select[Range[nn], PrimeOmega[#]==2&]; Mod[#[[1]], #[[2]]]&/@ Thread[{sp, Range[Length[sp]]}]] (* Harvey P. Dale, Jun 13 2020 *)
CROSSREFS
Cf. A001358.
Sequence in context: A201911 A048644 A246713 * A213381 A127651 A019641
KEYWORD
nonn
AUTHOR
Shyam Sunder Gupta, May 07 2005
STATUS
approved