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!)
A353366 Dirichlet inverse of A110963, which is a fractalization of Kimberling's paraphrases sequence (A003602). 4

%I #13 Jan 04 2024 23:55:05

%S 1,-1,-1,0,-2,1,-1,0,-2,2,-2,0,-4,1,3,0,-5,2,-3,0,-4,2,-2,0,-3,4,1,0,

%T -8,-3,-1,0,-5,5,-1,0,-10,3,5,0,-11,4,-6,0,-4,2,-2,0,-12,3,3,0,-14,-1,

%U 4,0,-9,8,-8,0,-16,1,14,0,-1,5,-9,0,-14,1,-5,0,-19,10,-4,0,-16,-5,-3,0,-12,11,-11,0,-2,6,10

%N Dirichlet inverse of A110963, which is a fractalization of Kimberling's paraphrases sequence (A003602).

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

%F a(1) = 1; a(n) = -Sum_{d|n, d < n} A110963(n/d) * a(d).

%F a(n) = A353367(n) - A110963(n).

%o (PARI)

%o up_to = 65537;

%o DirInverseCorrect(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = (-u[1]*sumdiv(n, d, if(d<n, v[n/d]*u[d], 0)))); (u) }; \\ Compute the Dirichlet inverse of the sequence given in input vector v.

%o A003602(n) = (1+(n>>valuation(n,2)))/2;

%o A110963(n) = if(n%2, A003602((1+n)/2), A110963(n/2));

%o v353366 = DirInverseCorrect(vector(up_to,n,A110963(n)));

%o A353366(n) = v353366[n];

%o (Python)

%o from functools import lru_cache

%o from sympy import divisors

%o @lru_cache(maxsize=None)

%o def A353366(n): return 1 if n==1 else -sum(((1+(m:=d>>(~d&d-1).bit_length())>>(m+1&-m-1).bit_length())+1)*A353366(n//d) for d in divisors(n,generator=True) if d>1) # _Chai Wah Wu_, Jan 04 2024

%Y Cf. A003602, A110963, A353367.

%Y Cf. also A349134, A353368.

%K sign

%O 1,5

%A _Antti Karttunen_, Apr 18 2022

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 19 11:34 EDT 2024. Contains 374394 sequences. (Running on oeis4.)