login
A380536
a(n) = 1 if n is a multiple of A351566(n), otherwise 0, where A351566 is the radix prime of the second least significant nonzero digit in the primorial base expansion of n, or 1 if there is no such digit.
0
1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1
OFFSET
1
PROG
(PARI)
A351566(n) = { my(p=2, c=0); while(n, if((n%p)>0, c++; if(2==c, return(p))); n = n\p; p = nextprime(1+p)); (1); };
A380536(n) = !(n%A351566(n));
CROSSREFS
Characteristic function of A380537, whose complement A380538 gives the positions of 0's.
Sequence in context: A181650 A115952 A115524 * A370122 A117198 A379968
KEYWORD
nonn,new
AUTHOR
Antti Karttunen, Feb 12 2025
STATUS
approved