login
a(n) = A354933(n) - A034699(n).
2

%I #10 Jun 18 2022 14:14:24

%S 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,

%T 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,

%U 0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8

%N a(n) = A354933(n) - A034699(n).

%H Antti Karttunen, <a href="/A354995/b354995.txt">Table of n, a(n) for n = 1..100000</a>

%t a[n_] := SelectFirst[Divisors[n], # >= n/# && CoprimeQ[#, n/#] &] - Max[Power @@@ FactorInteger[n]]; Array[a, 100] (* _Amiram Eldar_, Jun 18 2022 *)

%o (PARI)

%o A034699(n) = if(1==n, n, my(f=factor(n)); vecmax(vector(#f[, 1], i, f[i, 1]^f[i, 2])));

%o A354933(n) = fordiv(n,d,if((d>=(n/d)) && 1==gcd(d,n/d), return(d)));

%o A354995(n) = (A354933(n) - A034699(n));

%Y Cf. A034699, A354933.

%Y Cf. A051283 (apparently gives the positions of nonzero terms). Cf. also A354996.

%K nonn,look

%O 1,60

%A _Antti Karttunen_, Jun 18 2022