login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A353477
a(n) = 1 if n is a semiprime of the form 4k+1, otherwise 0.
8
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
OFFSET
1
FORMULA
a(n) = [A001222(n) == 2] * && [A010873(n) == 1], where [ ] are the Iverson brackets.
a(n) = A353480(n) - A353479(n).
MATHEMATICA
Table[If[PrimeOmega[n]==2&&Mod[n, 4]==1, 1, 0], {n, 130}] (* Harvey P. Dale, Mar 03 2024 *)
PROG
(PARI) A353477(n) = ((2==bigomega(n)) && (1==(n%4)));
CROSSREFS
Characteristic function of A108181.
Sequence in context: A297038 A353639 A353569 * A044939 A373973 A371084
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 22 2022
STATUS
approved