login
A373833
a(n) = gcd(n, A276150(n)), where A276150 is the digit sum in the primorial base.
7
0, 1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 4, 1, 3, 1, 4, 1, 1, 1, 4, 5, 1, 3, 2, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 4, 1, 3, 1, 4, 5, 1, 1, 4, 1, 5, 3, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 4, 5, 3, 1, 4, 1, 5, 1, 4, 1, 1, 3, 2, 7, 1, 1, 2, 1, 1, 1, 6, 1, 1, 1, 8, 1, 3, 1, 4, 1, 1, 1, 4, 1, 1, 3, 2, 1, 1, 1, 2, 7
OFFSET
0,5
FORMULA
a(n) = A373835(A276086(n)).
For n >= 1, a(n) = gcd(A276150(n), A373832(n)).
PROG
(PARI)
A276150(n) = { my(s=0, p=2, d); while(n, d = (n%p); s += d; n = (n-d)/p; p = nextprime(1+p)); (s); };
A373833(n) = gcd(n, A276150(n));
CROSSREFS
Cf. A049345, A276086, A276150, A333426 [positive k for which a(k) = A276150(k)], A358977 (indices of 1's), A373832, A373834, A373835, A373838, A373839 (indices of multiples of 3).
Sequence in context: A071773 A308993 A000188 * A162401 A324924 A301314
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jun 19 2024
STATUS
approved