Displaying 1-3 of 3 results found.
page
1
a(n) = 1 if n is an odd number with an even number of distinct prime factors, otherwise 0.
+10
6
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0
EXAMPLE
n = 45 = 3^2 * 5 is an odd number with two distinct prime factors, therefore a(45) = 1.
n = 1155 = 3*5*7*11 is an odd number with four distinct prime factors, therefore a(1155) = 1.
MATHEMATICA
Table[If[OddQ[n]&&EvenQ[PrimeNu[n]], 1, 0], {n, 130}] (* Harvey P. Dale, Feb 07 2024 *)
PROG
(PARI) A353675(n) = ((n%2) && !(omega(n)%2));
CROSSREFS
Characteristic function of {1} UNION A098905.
After n=1 differs from A353676 for the next time at n=1155, where a(1155)=1, while A353676(1155)=0.
a(n) = 1 if n is an odd number with an odd number of distinct prime factors, otherwise 0.
+10
4
0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1
EXAMPLE
n = 9 = 3^2 is an odd number with an odd number of distinct prime factors, therefore a(9) = 1.
n = 105 = 3*5*7 is an odd number with an odd number of distinct prime factors, therefore a(105) = 1.
PROG
(PARI) A353673(n) = ((n%2) && (omega(n)%2));
CROSSREFS
Characteristic function of A098903.
Differs from A174275 for the first time at n=105, where a(105) = 1, while A174275(105) = 0.
a(n) = 1 if n is an even number with an odd number of distinct prime factors, otherwise 0.
+10
4
0, 1, 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, 1, 0, 1, 0, 0, 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, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 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, 1, 0
MATHEMATICA
Table[If[EvenQ[n]&&OddQ[PrimeNu[n]], 1, 0], {n, 140}] (* Harvey P. Dale, Jul 16 2023 *)
PROG
(PARI) A353674(n) = (!(n%2) && (omega(n)%2));
CROSSREFS
Characteristic function of A098904.
Search completed in 0.004 seconds
|