

A328318


Number of nonzero digits in representation of A328316(n) in primorial base; Number of distinct prime factors in A328316(1+n).


5



0, 1, 1, 2, 1, 2, 1, 3, 5, 16, 104, 7447
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,4


LINKS

Table of n, a(n) for n=0..11.
Index entries for sequences related to primorial base


FORMULA

a(n) = A267263(A328316(n)).
a(n) = A001221(A328316(1+n)).


PROG

(PARI)
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A328316(n) = if(!n, 0, A276086(A328316(n1)));
A267263(n) = { my(s=0, p=2, d); while(n, d = (n%p); s += !!d; n = (nd)/p; p = nextprime(1+p)); (s); };
A328318(n) = A267263(A328316(n));
\\ Or alternatively, more slowly as:
A328318(n) = omega(A328316(1+n));


CROSSREFS

Cf. A001221, A267263, A276086, A328316, A328317, A328319.
Sequence in context: A256600 A137752 A331917 * A081169 A225765 A300588
Adjacent sequences: A328315 A328316 A328317 * A328319 A328320 A328321


KEYWORD

nonn,base,hard,more


AUTHOR

Antti Karttunen, Oct 14 2019


STATUS

approved



