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!)
A334863 a(n) = A064097(A003961(n)). 2
0, 2, 3, 4, 4, 5, 5, 6, 6, 6, 5, 7, 5, 7, 7, 8, 6, 8, 7, 8, 8, 7, 7, 9, 8, 7, 9, 9, 7, 9, 7, 10, 8, 8, 9, 10, 7, 9, 8, 10, 8, 10, 9, 9, 10, 9, 8, 11, 10, 10, 9, 9, 9, 11, 9, 11, 10, 9, 8, 11, 9, 9, 11, 12, 9, 10, 9, 10, 10, 11, 8, 12, 9, 9, 11, 11, 10, 10, 9, 12, 12, 10, 9, 12, 10, 11, 10, 11, 8, 12, 10, 11, 10, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Completely additive because A003961 is fully multiplicative and A064097 is fully additive.
LINKS
FORMULA
a(n) = A064097(A003961(n)).
a(1) = 0; and for n > 1, a(prime(k)) = A064097(prime(1+k)) for k-th prime, and a(n*m) = a(n) + a(m) if m,n > 1.
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f);
A064097(n) = if(1==n, 0, 1+A064097(n-(n/vecmin(factor(n)[, 1]))));
\\ Or alternatively as:
A334863(n) = { my(f=factor(n)); sum(k=1, #f~, f[k, 2]*A064097(prime(1+primepi(f[k, 1])))); };
CROSSREFS
Sequence in context: A056791 A333262 A218767 * A329202 A318994 A261101
KEYWORD
nonn,less
AUTHOR
Antti Karttunen, May 19 2020
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 April 18 06:12 EDT 2024. Contains 371769 sequences. (Running on oeis4.)