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.

A322352 a(n) = max(A003557(n), A173557(n)).

This page as a plain text file.
%I A322352 #10 Dec 05 2018 17:24:17
%S A322352 1,1,2,2,4,2,6,4,3,4,10,2,12,6,8,8,16,3,18,4,12,10,22,4,5,12,9,6,28,8,
%T A322352 30,16,20,16,24,6,36,18,24,4,40,12,42,10,8,22,46,8,7,5,32,12,52,9,40,
%U A322352 6,36,28,58,8,60,30,12,32,48,20,66,16,44,24,70,12,72,36,8,18,60,24,78,8,27,40,82,12,64,42,56,10,88,8
%N A322352 a(n) = max(A003557(n), A173557(n)).
%H A322352 Antti Karttunen, <a href="/A322352/b322352.txt">Table of n, a(n) for n = 1..16384</a>
%F A322352 a(n) = max(A003557(n), A173557(n)).
%F A322352 a(n) = A000010(n) / A322351(n).
%t A322352 a[n_] := If[n == 1, 1, Module[{f=FactorInteger[n]}, Max[ Times @@ (First[#]^ (Last[#]-1)& /@  f), Times@@((#-1)& @@@ f)]]]; Array[a, 120] (* _Amiram Eldar_, Dec 05 2018 *)
%o A322352 (PARI)
%o A322352 A003557(n) = { my(f=factor(n)); for (i=1, #f~, f[i, 2] = f[i, 2]-1); factorback(f); }; \\ From A003557
%o A322352 A173557(n) = factorback(apply(p -> p-1, factor(n)[, 1]));
%o A322352 A322352(n) = max(A003557(n), A173557(n));
%Y A322352 Cf. A000010, A003557, A173557, A322320, A322321, A322351, A322355.
%K A322352 nonn
%O A322352 1,3
%A A322352 _Antti Karttunen_, Dec 05 2018