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!)
A317847 Numerators of sequence whose Dirichlet convolution with itself yields A303757, the ordinal transform of function a(1) = 0; a(n) = phi(n) for n > 1, where phi is Euler's totient function (A000010). 3

%I #11 Dec 20 2021 09:42:57

%S 1,1,1,7,1,5,1,9,7,5,1,15,1,5,1,43,1,15,1,7,3,3,1,5,3,5,9,15,1,9,1,87,

%T 3,5,1,1,1,5,3,13,1,11,1,11,15,3,1,187,7,19,1,15,1,5,3,21,3,3,1,-1,1,

%U 3,11,387,1,9,1,7,1,13,1,119,1,7,19,23,3,19,1,139,-21,7,1,21,1,5,1,39,1,67,3,3,5,3,5,451,1,15,19,69,1,13,1,-27,7

%N Numerators of sequence whose Dirichlet convolution with itself yields A303757, the ordinal transform of function a(1) = 0; a(n) = phi(n) for n > 1, where phi is Euler's totient function (A000010).

%H Antti Karttunen, <a href="/A317847/b317847.txt">Table of n, a(n) for n = 1..65537</a>

%F a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * (A303757(n) - Sum_{d|n, d>1, d<n} f(d) * f(n/d)) for n > 1.

%t A303757[n_] := If[n == 2, 1, Count[EulerPhi[Range[n]] - EulerPhi[n], 0]];

%t f[n_] := f[n] = If[n == 1, 1, (1/2)(A303757[n] -

%t Sum[If[1<d<n, f[d] f[n/d], 0], {d, Divisors[n]}])];

%t a[n_] := Numerator[f[n]];

%t Array[a, 105] (* _Jean-François Alcover_, Dec 20 2021 *)

%o (PARI)

%o up_to = 65537;

%o ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om,invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om,invec[i],(1+pt))); outvec; };

%o DirSqrt(v)={my(n=#v, u=vector(n)); u[1]=1; for(n=2, n, u[n]=(v[n]/v[1] - sumdiv(n, d, if(d>1&&d<n, u[d]*u[n/d], 0)))/2); u}; \\ From A317937.

%o v303757 = ordinal_transform(vector(up_to,n,if(1==n,0,eulerphi(n))));

%o v317847 = DirSqrt(vector(up_to, n, v303757[n]));

%o A317847(n) = numerator(v317847[n]);

%Y Cf. A000010, A303757, A046644 (denominators).

%Y Cf. also A317830, A317833, A317834, A317937.

%K sign

%O 1,4

%A _Antti Karttunen_, Aug 14 2018

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 September 10 03:01 EDT 2024. Contains 375770 sequences. (Running on oeis4.)