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!)
A335427 a(1) = 0; for k >= 2, a(prime(k)) = 0, a(k^2) = 2 * a(k); otherwise a(n) = a(A334870(n)) + 1. 2

%I #23 Jun 26 2020 23:44:19

%S 0,1,0,2,0,1,0,3,0,1,0,4,0,1,2,4,0,1,0,6,2,1,0,5,0,1,2,10,0,3,0,5,2,1,

%T 4,2,0,1,2,7,0,3,0,18,4,1,0,6,0,1,2,34,0,3,4,11,2,1,0,8,0,1,8,6,4,3,0,

%U 66,2,5,0,3,0,1,2,130,8,3,0,8,0,1,0,12,4,1,2,19,0,5,8,258,2,1,4,7,0,1,16,2,0,3,0,35,6

%N a(1) = 0; for k >= 2, a(prime(k)) = 0, a(k^2) = 2 * a(k); otherwise a(n) = a(A334870(n)) + 1.

%H Antti Karttunen, <a href="/A335427/b335427.txt">Table of n, a(n) for n = 1..16384</a>

%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>

%F Alternative definition: (Start)

%F a(1) = 0, a(2) = 1; otherwise for n = k * m^2, k squarefree:

%F if m = 1, a(n) = A048675(A052126(k));

%F if m > 1, a(n) = A048675(k) + 2 * a(m).

%F (End)

%F For n = 4 * A122132(k), a(n) = A048675(n).

%F More generally, a(n) = A048675(n) if and only if n is in A335738.

%F a(n) = A335426(A225546(n)).

%F a(A003961(2k+1)) = 2 * a(2k+1).

%F If n is in A036554, a(n) = a(n/2) + 1; otherwise for n <> 3, a(n) = 2 * a(A019565(k/2) * m^2) - a(m^2), where n = A019565(k) * m^2.

%o (PARI)

%o A334870(n) = if(issquare(n),sqrtint(n),my(c=core(n), m=n); forprime(p=2, , if(!(c % p), m/=p; break, m*=p)); (m));

%o A335427(n) = if(n<=2,n-1, if(isprime(n), 0, if(issquare(n), 2*A335427(sqrtint(n)), 1+A335427(A334870(n)))));

%o (PARI)

%o A048675(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*2^primepi(f[k, 1]))/2; };

%o A052126(n) = if(1==n,n,(n/vecmax(factor(n)[, 1])));

%o A335427(n) = if(n<=2,n-1, if(issquarefree(n), A048675(A052126(n)), my(k=core(n)); A048675(k) + 2*A335427(sqrtint(n/k))));

%Y A052126, A225546, A334870, A335426 are used in formulas defining this sequence.

%Y Related fully additive sequence: A048675.

%Y Cf. A062090 (indices of zeros), A003159 (indices of even values), A036554 (indices of odd values).

%Y Cf. A005117, A122132, A334872, A335738.

%Y A003961, A019565 are used to express relationship between terms of this sequence.

%K nonn

%O 1,4

%A _Antti Karttunen_ and _Peter Munn_, Jun 15 2020

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 July 18 16:16 EDT 2024. Contains 374388 sequences. (Running on oeis4.)