login
A334090
a(1) = 0, and then after the first differences of A064097.
5
0, 1, 1, 0, 1, 0, 1, -1, 1, 0, 1, -1, 1, 0, 0, -1, 1, 0, 1, -1, 1, 0, 1, -2, 1, 0, 0, 0, 1, -1, 1, -2, 2, -1, 1, -1, 1, 0, 0, -1, 1, 0, 1, -1, 0, 1, 1, -3, 2, -1, 0, 0, 1, -1, 1, -1, 1, 0, 1, -2, 1, 0, 0, -2, 2, 0, 1, -2, 2, -1, 1, -2, 1, 0, 0, 0, 1, -1, 1, -2, 1, 0, 1, -1, 0, 1, 0, -1, 1, -1, 1, 0, 0, 1, -1, -2, 1, 1, 0, -1, 1, -1, 1, -1, 1
OFFSET
1,24
LINKS
FORMULA
a(1) = 0, and for n > 1, a(n) = A064097(n) - A064097(n-1).
a(n) = A334091(n) + A334195(n).
PROG
(PARI)
A064097(n) = if(1==n, 0, 1+A064097(n-(n/vecmin(factor(n)[, 1]))));
A334090(n) = if(1==n, 0, A064097(n)-A064097(n-1));
CROSSREFS
Cf. A334197 (positions of records).
Cf. also A332903.
Sequence in context: A143111 A328361 A301367 * A179195 A372360 A238386
KEYWORD
sign
AUTHOR
Antti Karttunen, Apr 17 2020
STATUS
approved