OFFSET
1
COMMENTS
LINKS
FORMULA
MATHEMATICA
a[n_] := Module[{k = n, p = 2, s = {}, r}, While[{k, r} = QuotientRemainder[k, p]; k != 0 || r != 0, AppendTo[s, r]; p = NextPrime[p]]; Boole[s[[1]] == 0 && EvenQ[FirstPosition[s, _?(# > 0 &)][[1]]]]]; Array[a, 100] (* Amiram Eldar, Mar 06 2024 *)
PROG
(PARI) A353525(n) = { for(i=1, oo, if(n%prime(i), return((i+1)%2))); }
CROSSREFS
Characteristic function of A342050.
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 25 2022
STATUS
approved