cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A354995 a(n) = A354933(n) - A034699(n).

This page as a plain text file.
%I A354995 #10 Jun 18 2022 14:14:24
%S A354995 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 A354995 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 A354995 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 A354995 a(n) = A354933(n) - A034699(n).
%H A354995 Antti Karttunen, <a href="/A354995/b354995.txt">Table of n, a(n) for n = 1..100000</a>
%t A354995 a[n_] := SelectFirst[Divisors[n], # >= n/# && CoprimeQ[#, n/#] &] - Max[Power @@@ FactorInteger[n]]; Array[a, 100] (* _Amiram Eldar_, Jun 18 2022 *)
%o A354995 (PARI)
%o A354995 A034699(n) = if(1==n, n, my(f=factor(n)); vecmax(vector(#f[, 1], i, f[i, 1]^f[i, 2])));
%o A354995 A354933(n) = fordiv(n,d,if((d>=(n/d)) && 1==gcd(d,n/d), return(d)));
%o A354995 A354995(n) = (A354933(n) - A034699(n));
%Y A354995 Cf. A034699, A354933.
%Y A354995 Cf. A051283 (apparently gives the positions of nonzero terms). Cf. also A354996.
%K A354995 nonn,look
%O A354995 1,60
%A A354995 _Antti Karttunen_, Jun 18 2022