login
A380484
a(n) = 1 if n is congruent to {0, 1, 2, 3, 4, 5} mod 30, otherwise 0.
3
1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 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, 1
OFFSET
0
COMMENTS
Period 30.
a(n) = 1 if the third rightmost digit in A049345(n) is (possibly a leading) zero, otherwise 0.
a(n) = 1 if A276086(n) is not a multiple of 5, otherwise 0, where A276086 is the primorial base exp-function.
FORMULA
a(n) = A079998(floor(n/6)).
a(n+30) = a(n).
MATHEMATICA
a[n_] := Boole[Mod[n, 30] < 6]; Array[a, 120, 0] (* Amiram Eldar, Feb 03 2025 *)
PROG
(PARI)
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A380484(n) = !!(A276086(n)%5);
(PARI) A380484(n) = !((n\6)%5);
CROSSREFS
Characteristic function of A380485, whose complement A380486 gives the positions of 0's.
Sequence in context: A300294 A071041 A082551 * A152614 A127507 A204441
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Feb 03 2025
STATUS
approved