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!)
A140706 A054525 * A014683; a(n) = Sum_{d|n} mu(d)*A014683(n/d). 1

%I #22 May 15 2020 08:42:08

%S 1,2,3,1,5,0,7,4,5,2,11,5,13,4,6,8,17,7,19,9,10,8,23,8,19,10,18,13,29,

%T 11,31,16,18,14,22,12,37,16,22,16,41,15,43,21,25,20,47,16,41,21,30,25,

%U 53,18,38,24,34,26,59,15,61,28,37,32,46,23,67,33,42,27,71,24,73,34,41

%N A054525 * A014683; a(n) = Sum_{d|n} mu(d)*A014683(n/d).

%C a(n) = n iff n is prime.

%H Antti Karttunen, <a href="/A140706/b140706.txt">Table of n, a(n) for n = 1..10000</a>

%F Möbius transform of A014683: (1, 3, 4, 4, 6, 6, 8, 8, 9, 10, ...); where A014683(n) = n if n is not prime; but (n+1) if n is prime.

%F a(n) = Sum_{d|n} A008683(d)*A014683(n/d), where A008683 is Moebius mu function. - _Antti Karttunen_, Jul 28 2017

%e a(4) = 1 = (0, -1, 0, 1) dot (1, 3, 4, 4), where (0, -1, 0, 1) = row 4 of triangle A054525.

%p read("transforms") : A014683 := proc(n) if isprime(n) then 1+n; else n; fi; end: a014683 := [seq(A014683(n),n=1..150)] ; a140706 := MOBIUS(a014683) ; for i from 1 to nops(a140706) do printf("%d,",op(i,a140706)) ; od: # _R. J. Mathar_, Jan 19 2009

%t Table[Sum[MoebiusMu[d] (# + Boole@ PrimeQ@ #) &[n/d], {d, Divisors@ n}], {n, 75}] (* _Michael De Vlieger_, Jul 29 2017 *)

%o (PARI)

%o A014683(n) = (n+isprime(n));

%o A140706(n) = sumdiv(n,d,moebius(d)*A014683(n/d)); \\ _Antti Karttunen_, Jul 28 2017

%o (Python)

%o from sympy import isprime, mobius, divisors

%o def a014683(n): return n + isprime(n)

%o def a140706(n): return sum(mobius(d)*a014683(n//d) for d in divisors(n))

%o print([a140706(n) for n in range(1,51)]) # _Indranil Ghosh_, Jul 29 2017

%Y Cf. A008683, A014683, A054525.

%K nonn

%O 1,2

%A _Gary W. Adamson_, May 24 2008

%E More terms from _R. J. Mathar_, Jan 19 2009

%E Second part added to the name by _Antti Karttunen_, Jul 28 2017

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 23 02:23 EDT 2024. Contains 371906 sequences. (Running on oeis4.)