login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A373830 a(n) = 1 if the primorial base representation of n has alternating digit sum that is a multiple of 3, otherwise 0. 5
1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
a(n) = 1 if the multiplicities of prime factors of A276086(n) that are even-indexed (A031215) and odd-indexed (A031368) are equal modulo 3, otherwise 0.
LINKS
FORMULA
a(n) = [A373605(n) == 0 (mod 3)].
PROG
(PARI)
A373605(n) = { my(p=2, i=1, s=0); while(n, s += i*(n%p); n = n\p; p = nextprime(1+p); i = -i); (s); };
A373830(n) = !(A373605(n)%3);
CROSSREFS
Characteristic function of A373831.
Cf. A031215, A031368, A276086, A373604 [= a(6*n)], A373605.
Cf. also A079978 (characteristic function for multiples of 3), which can be obtained via an analogous construction for base-2 representation (substitute A065359 for A373605).
Sequence in context: A326072 A304362 A368997 * A330682 A230135 A359836
KEYWORD
nonn,base,new
AUTHOR
Antti Karttunen, Jun 19 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 2 23:09 EDT 2024. Contains 373960 sequences. (Running on oeis4.)